includes/pageprocess.php
changeset 571 66e14e61613e
parent 570 4d0d5dae61e5
child 592 27377179fe58
--- a/includes/pageprocess.php	Sat Jun 14 22:01:24 2008 -0400
+++ b/includes/pageprocess.php	Sun Jun 15 00:59:37 2008 -0400
@@ -194,6 +194,15 @@
         return false;
       }
     }
+    
+    // Is there a custom function registered for handling this namespace?
+    if ( $proc = $paths->get_namespace_processor($this->namespace) )
+    {
+      // yes, just call that
+      // this is protected aggressively by the PathManager against overriding critical namespaces
+      return call_user_func($proc, $this);
+    }
+    
     $pathskey = $paths->nslist[ $this->namespace ] . $this->page_id;
     $strict_no_headers = false;
     if ( $this->namespace == 'Admin' && strstr($this->page_id, '/') )