includes/render.php
changeset 261 5f1cd51bf1be
parent 259 112debff64bd
child 284 d823e49e2e4e
equal deleted inserted replaced
259:112debff64bd 261:5f1cd51bf1be
    42   {
    42   {
    43     global $db, $session, $paths, $template, $plugins; // Common objects
    43     global $db, $session, $paths, $template, $plugins; // Common objects
    44     
    44     
    45     $perms =& $session;
    45     $perms =& $session;
    46     
    46     
    47     if ( $page_id != $paths->cpage['urlname_nons'] || $namespace != $paths->namespace )
    47     if ( $page_id != $paths->page_id || $namespace != $paths->namespace )
    48     {
    48     {
    49       unset($perms);
    49       unset($perms);
    50       unset($perms); // PHP <5.1.5 Zend bug
    50       unset($perms); // PHP <5.1.5 Zend bug
    51       $perms = $session->fetch_page_acl($page_id, $namespace);
    51       $perms = $session->fetch_page_acl($page_id, $namespace);
    52     }
    52     }