includes/paths.php
changeset 395 fa4c5ecb7c9a
parent 391 85f91037cd4f
child 458 c433348f3628
--- a/includes/paths.php	Thu Jan 31 22:29:07 2008 -0500
+++ b/includes/paths.php	Sat Feb 02 11:54:16 2008 -0500
@@ -438,7 +438,13 @@
   }
   function get_pageid_from_url()
   {
-    return $this->parse_url();
+    $url = $this->parse_url();
+    if ( substr($url, 0, strlen($this->nslist['Special'])) == $this->nslist['Special'] ||
+         substr($url, 0, strlen($this->nslist['Admin']))   == $this->nslist['Admin'])
+    {
+      list($url) = explode('/', $url);
+    }
+    return $url;
   }
   // Parses a (very carefully formed) array into Javascript code compatible with the Tigra Tree Menu used in the admin menu
   function parseAdminTree()