includes/pageprocess.php
changeset 4 0b3a0aedfd53
parent 1 fe660c52c48f
child 9 1e61232606d6
equal deleted inserted replaced
3:2b2084ca1e60 4:0b3a0aedfd53
   192       
   192       
   193       if ( empty($ob) )
   193       if ( empty($ob) )
   194       {
   194       {
   195         $this->err_page_not_existent();
   195         $this->err_page_not_existent();
   196       }
   196       }
   197       
   197     }
   198     }
   198     
   199     
   199     
   200   }
   200   }
   201   
   201   
   202   /**
   202   /**
   203    * Sets internal variables.
   203    * Sets internal variables.
   220     {
   220     {
   221       $fname = "page_Admin_{$this->page_id}";
   221       $fname = "page_Admin_{$this->page_id}";
   222     }
   222     }
   223     
   223     
   224     // Does the page "exist"?
   224     // Does the page "exist"?
   225     if ( $paths->cpage['urlname_nons'] == $page_id && $paths->namespace == $namespace && !$paths->page_exists && ( $this->namespace == 'Admin' && !function_exists($fname) ) )
   225     if ( $paths->cpage['urlname_nons'] == $page_id && $paths->namespace == $namespace && !$paths->page_exists && ( $this->namespace != 'Admin' || ($this->namespace == 'Admin' && !function_exists($fname) ) ) )
   226     {
   226     {
   227       $this->page_exists = false;
   227       $this->page_exists = false;
   228     }
   228     }
   229     else if ( !isset( $paths->pages[ $paths->nslist[$namespace] . $page_id ] ) && ( $this->namespace == 'Admin' && !function_exists($fname) ) )
   229     else if ( !isset( $paths->pages[ $paths->nslist[$namespace] . $page_id ] ) && ( $this->namespace == 'Admin' && !function_exists($fname) ) )
   230     {
   230     {