diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-17 17:03:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-17 17:03:41 +0000 |
commit | 19f85e9912bbebaaa5940d8ddf823f2d3df69d73 (patch) | |
tree | 5b7c070edee596596a19c8ee3ab741ee022022c0 | |
parent | cedbefc967cd5bef3dd606d6d5720b41818805ad (diff) | |
download | brdo-19f85e9912bbebaaa5940d8ddf823f2d3df69d73.tar.gz brdo-19f85e9912bbebaaa5940d8ddf823f2d3df69d73.tar.bz2 |
- fixed sub-directory problem reported by UnConeD
-rw-r--r-- | modules/book.module | 2 | ||||
-rw-r--r-- | modules/book/book.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module index 8d6130798..8fe3aea9f 100644 --- a/modules/book.module +++ b/modules/book.module @@ -163,7 +163,7 @@ function book_save($edit) { function book_tree($parent = "", $depth = 0) { global $PHP_SELF, $status; - if (($depth < 3) || ($PHP_SELF == "/admin.php")) { + if (($depth < 3) || (strstr($PHP_SELF,"admin.php"))) { $result = db_query("SELECT n.*, b.* FROM node n LEFT JOIN book b ON n.nid = b.nid AND n.lid = b.lid WHERE n.type = 'book' AND n.status = '$status[posted]' AND b.parent = '$parent' ORDER BY b.weight"); $output .= "<UL>"; while ($node = db_fetch_object($result)) { diff --git a/modules/book/book.module b/modules/book/book.module index 8d6130798..8fe3aea9f 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -163,7 +163,7 @@ function book_save($edit) { function book_tree($parent = "", $depth = 0) { global $PHP_SELF, $status; - if (($depth < 3) || ($PHP_SELF == "/admin.php")) { + if (($depth < 3) || (strstr($PHP_SELF,"admin.php"))) { $result = db_query("SELECT n.*, b.* FROM node n LEFT JOIN book b ON n.nid = b.nid AND n.lid = b.lid WHERE n.type = 'book' AND n.status = '$status[posted]' AND b.parent = '$parent' ORDER BY b.weight"); $output .= "<UL>"; while ($node = db_fetch_object($result)) { |