Skip to:
Content

bbPress.org

Changeset 23


Ignore:
Timestamp:
12/28/2004 10:28:24 PM (20 years ago)
Author:
matt
Message:

Work in subdirs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/template-functions.php

    r22 r23  
    4747
    4848function is_front() {
    49     if ( '/index.php' == $_SERVER['PHP_SELF'] )
     49    if ( 'index.php' == basename($_SERVER['PHP_SELF']) )
    5050        return true;
    5151    else
     
    5454
    5555function is_forum() {
    56     if ( '/forum.php' == $_SERVER['PHP_SELF'] )
     56    if ( 'forum.php' == basename($_SERVER['PHP_SELF']) )
    5757        return true;
    5858    else
     
    6161
    6262function is_topic() {
    63     if ( '/topic.php' == $_SERVER['PHP_SELF'] )
     63    if ( 'topic.php' == basename($_SERVER['PHP_SELF']) )
    6464        return true;
    6565    else
Note: See TracChangeset for help on using the changeset viewer.