Changeset 23
- Timestamp:
- 12/28/2004 10:28:24 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/template-functions.php
r22 r23 47 47 48 48 function is_front() { 49 if ( ' /index.php' == $_SERVER['PHP_SELF'])49 if ( 'index.php' == basename($_SERVER['PHP_SELF']) ) 50 50 return true; 51 51 else … … 54 54 55 55 function is_forum() { 56 if ( ' /forum.php' == $_SERVER['PHP_SELF'])56 if ( 'forum.php' == basename($_SERVER['PHP_SELF']) ) 57 57 return true; 58 58 else … … 61 61 62 62 function is_topic() { 63 if ( ' /topic.php' == $_SERVER['PHP_SELF'])63 if ( 'topic.php' == basename($_SERVER['PHP_SELF']) ) 64 64 return true; 65 65 else
Note: See TracChangeset
for help on using the changeset viewer.