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