equal
deleted
inserted
replaced
322 // View source button |
322 // View source button |
323 } |
323 } |
324 else if($session->get_permissions('view_source') && ( !$session->get_permissions('edit_page') || !$session->get_permissions('even_when_protected') && $paths->page_protected ) && $paths->namespace != 'Special' && $paths->namespace != 'Admin') |
324 else if($session->get_permissions('view_source') && ( !$session->get_permissions('edit_page') || !$session->get_permissions('even_when_protected') && $paths->page_protected ) && $paths->namespace != 'Special' && $paths->namespace != 'Admin') |
325 { |
325 { |
326 $button->assign_vars(array( |
326 $button->assign_vars(array( |
327 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxViewSource()); return false; }" title="' . $lang->get('onpage_tip_viewsource') . '" accesskey="e"', |
327 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { void(ajaxEditor()); return false; }" title="' . $lang->get('onpage_tip_viewsource') . '" accesskey="e"', |
328 'PARENTFLAGS' => 'id="mdgToolbar_edit"', |
328 'PARENTFLAGS' => 'id="mdgToolbar_edit"', |
329 'HREF' => makeUrl($paths->page, 'do=viewsource', true), |
329 'HREF' => makeUrl($paths->page, 'do=viewsource', true), |
330 'TEXT' => $lang->get('onpage_btn_viewsource') |
330 'TEXT' => $lang->get('onpage_btn_viewsource') |
331 )); |
331 )); |
332 $tb .= $button->run(); |
332 $tb .= $button->run(); |