includes/paths.php
changeset 322 5f1cd51bf1be
parent 320 112debff64bd
child 325 e17cc42d77cf
equal deleted inserted replaced
320:112debff64bd 322:5f1cd51bf1be
    16  * @subpackage PathManager
    16  * @subpackage PathManager
    17  * @see http://enanocms.org/Help:API_Documentation
    17  * @see http://enanocms.org/Help:API_Documentation
    18  */
    18  */
    19  
    19  
    20 class pathManager {
    20 class pathManager {
    21   var $pages, $custom_page, $cpage, $page, $fullpage, $page_exists, $namespace, $nslist, $admin_tree, $wiki_mode, $page_protected, $template_cache, $anonymous_page;
    21   var $pages, $custom_page, $cpage, $page, $fullpage, $page_exists, $page_id, $namespace, $nslist, $admin_tree, $wiki_mode, $page_protected, $template_cache, $anonymous_page;
    22   function __construct()
    22   function __construct()
    23   {
    23   {
    24     global $db, $session, $paths, $template, $plugins; // Common objects
    24     global $db, $session, $paths, $template, $plugins; // Common objects
    25     
    25     
    26     $GLOBALS['paths'] =& $this;
    26     $GLOBALS['paths'] =& $this;
   291     
   291     
   292     if(isset($this->pages[$this->page]))
   292     if(isset($this->pages[$this->page]))
   293     {
   293     {
   294       $this->page_exists = true;
   294       $this->page_exists = true;
   295       $this->cpage = $this->pages[$this->page];
   295       $this->cpage = $this->pages[$this->page];
       
   296       $this->page_id =& $this->cpage['urlname_nons'];
   296       $this->namespace = $this->cpage['namespace'];
   297       $this->namespace = $this->cpage['namespace'];
   297       if(!isset($this->cpage['wiki_mode'])) $this->cpage['wiki_mode'] = 2;
   298       if(!isset($this->cpage['wiki_mode'])) $this->cpage['wiki_mode'] = 2;
   298       
   299       
   299       // Determine the wiki mode for this page, now that we have this->cpage established
   300       // Determine the wiki mode for this page, now that we have this->cpage established
   300       if($this->cpage['wiki_mode'] == 2)
   301       if($this->cpage['wiki_mode'] == 2)