includes/paths.php
changeset 793 c0724bf6039b
parent 771 5e85d7db8ee5
child 801 eb8b23f11744
--- a/includes/paths.php	Mon Dec 22 21:25:14 2008 -0500
+++ b/includes/paths.php	Mon Dec 22 21:26:19 2008 -0500
@@ -379,6 +379,8 @@
     // This is used in the admin panel to keep track of form submission targets
     $this->cpage['module'] = $this->cpage['urlname'];
     
+    $this->cpage['require_admin'] = ( $this->cpage['namespace'] === 'Admin' );
+    
     // Page is set up, call any hooks
     $code = $plugins->setHook('page_set');
     foreach ( $code as $cmd )
@@ -402,6 +404,8 @@
         $flags['name'] = $lang->get($flags['name']);
     }
     
+    $flags['require_admin'] = ( $flags['namespace'] === 'Admin' );
+    
     $pages_len = sizeof($this->pages) / 2;
     $this->pages[$pages_len] = $flags;
     $this->pages[$flags['urlname']] =& $this->pages[$pages_len];