includes/paths.php
changeset 264 e17cc42d77cf
parent 261 5f1cd51bf1be
child 280 7b984f924dcd
equal deleted inserted replaced
263:16d0c9f33466 264:e17cc42d77cf
   340       $page_name = str_replace('_', ' ', $page_name);
   340       $page_name = str_replace('_', ' ', $page_name);
   341       
   341       
   342       $pid_cleaned = sanitize_page_id($this->page);
   342       $pid_cleaned = sanitize_page_id($this->page);
   343       if ( $pid_cleaned != $this->page )
   343       if ( $pid_cleaned != $this->page )
   344       {
   344       {
   345         redirect($pid_cleaned, 'Sanitizer message', 'page id sanitized', 0);
   345         redirect(makeUrl($pid_cleaned), 'Sanitizer message', 'page id sanitized', 0);
   346       }
   346       }
   347       
   347       
   348       if ( !is_array($this->cpage) )
   348       if ( !is_array($this->cpage) )
   349       {
   349       {
   350         $this->cpage = Array(
   350         $this->cpage = Array(
   374             $this->cpage['wiki_mode'] = 2;
   374             $this->cpage['wiki_mode'] = 2;
   375           }
   375           }
   376         }
   376         }
   377       }
   377       }
   378       $this->namespace = $this->cpage['namespace'];
   378       $this->namespace = $this->cpage['namespace'];
       
   379       $this->page_id =& $this->cpage['urlname_nons'];
   379       
   380       
   380       if($this->namespace=='System') 
   381       if($this->namespace=='System') 
   381       {
   382       {
   382         $this->cpage['protected'] = 1;
   383         $this->cpage['protected'] = 1;
   383       }
   384       }
  1007     return $group_list;
  1008     return $group_list;
  1008     
  1009     
  1009   }
  1010   }
  1010   
  1011   
  1011 }
  1012 }
  1012   
  1013 
  1013 ?>
  1014 ?>