From 0fc5247c5f66da393b64f67245356cc85d826ec7 Mon Sep 17 00:00:00 2001 From: jerome Date: Wed, 3 Sep 2008 08:45:14 +0000 Subject: [PATCH] MDL-15402: fix XHTML for repository admin pages + don't use anymore deprecated functions print_simple_box_xxx() --- lib/adminlib.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/lib/adminlib.php b/lib/adminlib.php index 000cd145e6..026736cfbf 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -5578,7 +5578,7 @@ class admin_setting_managerepository extends admin_setting { function output_html($data, $query='') { global $CFG, $USER; - $output = print_simple_box_start(true); + $output = print_box_start('','',true); $namestr = get_string('name'); $stropt = get_string('operation', 'repository'); $updown = get_string('updown', 'repository'); @@ -5597,10 +5597,10 @@ class admin_setting_managerepository extends admin_setting { if ( repository_static_function($i->get_typename(), 'has_admin_config') || repository_static_function($i->get_typename(), 'has_instance_config') || repository_static_function($i->get_typename(), 'has_multiple_instances')) { - $row .= '' . get_string('edit') . '' . "\n"; + $row .= '' . get_string('edit') . '' . "\n"; } - $row .= '' . get_string('delete') . '' . "\n"; - $row .= ' ' . get_string($i->get_visible() ? 'hide' : 'show') . '' . "\n"; + $row .= '' . get_string('delete') . '' . "\n"; + $row .= ' ' . get_string($i->get_visible() ? 'hide' : 'show') . '' . "\n"; // display up/down link $updown = ''; @@ -5636,21 +5636,19 @@ class admin_setting_managerepository extends admin_setting { foreach ($plugins as $p) { if (!in_array($p, $alreadyplugins)) { $instancehtml .= '
  • '.get_string('add', 'repository') + .$USER->sesskey.'&new='.$p.'">'.get_string('add', 'repository') .' "'.get_string('repositoryname', 'repository_'.$p).'" ' .'
  • '; $addable++; } } $instancehtml .= ''; - - if ($addable) { - $instancehtml .= ''; + $instancehtml .= ''; + if ($addable) { $output .= $instancehtml; } - $output .= print_simple_box_end(true); - + $output .= print_box_end(true); return highlight($query, $output); } } -- 2.39.5