includes/template.php
changeset 276 b8fd21190ae1
parent 272 27f5ac58992c
child 279 b6faa6d6ade2
equal deleted inserted replaced
275:62e1a6f3de84 276:b8fd21190ae1
   295         ));
   295         ));
   296       
   296       
   297       $tb .= $button->run();
   297       $tb .= $button->run();
   298     }
   298     }
   299     // Edit button
   299     // Edit button
   300     if($session->get_permissions('read') && ($paths->namespace != 'Special' && $paths->namespace != 'Admin') && ( $session->get_permissions('edit_page') && ( ( $paths->page_protected && $session->get_permissions('even_when_protected') ) || !$paths->page_protected ) ) )
   300     if($session->get_permissions('read') && ($paths->namespace != 'Special' && $paths->namespace != 'Admin' && $paths->namespace != 'Anonymous') && ( $session->get_permissions('edit_page') && ( ( $paths->page_protected && $session->get_permissions('even_when_protected') ) || !$paths->page_protected ) ) )
   301     {
   301     {
   302       $button->assign_vars(array(
   302       $button->assign_vars(array(
   303         'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxEditor()); return false; }" title="Edit the contents of this page (alt-e)" accesskey="e"',
   303         'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxEditor()); return false; }" title="Edit the contents of this page (alt-e)" accesskey="e"',
   304         'PARENTFLAGS' => 'id="mdgToolbar_edit"',
   304         'PARENTFLAGS' => 'id="mdgToolbar_edit"',
   305         'HREF' => makeUrl($paths->page, 'do=edit', true),
   305         'HREF' => makeUrl($paths->page, 'do=edit', true),