includes/template.php
changeset 335 67bd3121a12e
parent 326 ab66d6d1f1f4
child 345 4ccdfeee9a11
equal deleted inserted replaced
334:c72b545f1304 335:67bd3121a12e
   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();