includes/render.php
changeset 322 5f1cd51bf1be
parent 320 112debff64bd
child 326 ab66d6d1f1f4
child 457 d823e49e2e4e
equal deleted inserted replaced
320:112debff64bd 322: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     }