equal
deleted
inserted
replaced
444 if ( $paths->cpage['wiki_mode'] == 1 ) |
444 if ( $paths->cpage['wiki_mode'] == 1 ) |
445 { |
445 { |
446 $ctmp = ' style="text-decoration: underline;"'; |
446 $ctmp = ' style="text-decoration: underline;"'; |
447 } |
447 } |
448 $menubtn->assign_vars(array( |
448 $menubtn->assign_vars(array( |
449 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(1); return false; }" id="wikibtn_1" title="Forces wiki functions to be allowed on this page."'.$ctmp, |
449 'FLAGS' => /* 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(1); return false; }" id="wikibtn_1" title="Forces wiki functions to be allowed on this page."'. */ $ctmp, |
450 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=1', true), |
450 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=1', true), |
451 'TEXT' => 'on' |
451 'TEXT' => 'on' |
452 )); |
452 )); |
453 $t1 = $menubtn->run(); |
453 $t1 = $menubtn->run(); |
454 |
454 |
457 if ( $paths->cpage['wiki_mode'] == 0 ) |
457 if ( $paths->cpage['wiki_mode'] == 0 ) |
458 { |
458 { |
459 $ctmp=' style="text-decoration: underline;"'; |
459 $ctmp=' style="text-decoration: underline;"'; |
460 } |
460 } |
461 $menubtn->assign_vars(array( |
461 $menubtn->assign_vars(array( |
462 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(0); return false; }" id="wikibtn_0" title="Forces wiki functions to be disabled on this page."'.$ctmp, |
462 'FLAGS' => /* 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(0); return false; }" id="wikibtn_0" title="Forces wiki functions to be disabled on this page."'. */ $ctmp, |
463 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=0', true), |
463 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=0', true), |
464 'TEXT' => 'off' |
464 'TEXT' => 'off' |
465 )); |
465 )); |
466 $t2 = $menubtn->run(); |
466 $t2 = $menubtn->run(); |
467 |
467 |
470 if ( $paths->cpage['wiki_mode'] == 2 ) |
470 if ( $paths->cpage['wiki_mode'] == 2 ) |
471 { |
471 { |
472 $ctmp=' style="text-decoration: underline;"'; |
472 $ctmp=' style="text-decoration: underline;"'; |
473 } |
473 } |
474 $menubtn->assign_vars(array( |
474 $menubtn->assign_vars(array( |
475 'FLAGS' => 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(2); return false; }" id="wikibtn_2" title="Causes this page to use the global wiki mode setting (default)"'.$ctmp, |
475 'FLAGS' => /* 'onclick="if ( !KILL_SWITCH ) { ajaxSetWikiMode(2); return false; }" id="wikibtn_2" title="Causes this page to use the global wiki mode setting (default)"'. */ $ctmp, |
476 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=2', true), |
476 'HREF' => makeUrl($paths->page, 'do=setwikimode&level=2', true), |
477 'TEXT' => 'global' |
477 'TEXT' => 'global' |
478 )); |
478 )); |
479 $t3 = $menubtn->run(); |
479 $t3 = $menubtn->run(); |
480 |
480 |