equal
deleted
inserted
replaced
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 } |