includes/template.php
changeset 272 27f5ac58992c
parent 271 4e26d6079910
child 279 b6faa6d6ade2
equal deleted inserted replaced
271:4e26d6079910 272:27f5ac58992c
   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),