From fedf73572e2be91ddc2f2adc66f65aa0365d4dff Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 8 Jan 2007 06:38:43 +0000 Subject: [PATCH] Refinements for print_box_* arguments names --- lib/weblib.php | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index c793cd0050..74338f967b 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2898,13 +2898,13 @@ function print_continue($link, $return=false) { * Replaces print_simple_box (see deprecatedlib.php) * * @param string $message, the content of the box - * @param string $class, space-separated class names. - * @param string $id, space-separated id names. + * @param string $classes, space-separated class names. + * @param string $ids, space-separated id names. * @param boolean $return, return as string or just print it */ -function print_box($message, $class='generalbox', $id='', $return=false) { +function print_box($message, $classes='generalbox', $ids='', $return=false) { - $output = print_box_start($class, $id, true); + $output = print_box_start($classes, $ids, true); $output .= stripslashes_safe($message); $output .= print_box_end(true); @@ -2919,20 +2919,18 @@ function print_box($message, $class='generalbox', $id='', $return=false) { * Starts a box using divs * Replaces print_simple_box_start (see deprecatedlib.php) * - * @param string $class, space-separated class names. - * @param string $id, space-separated id names. + * @param string $classes, space-separated class names. + * @param string $ids, space-separated id names. * @param boolean $return, return as string or just print it */ -function print_box_start($class='generalbox', $id='', $return=false) { +function print_box_start($classes='generalbox', $ids='', $return=false) { $output = ''; - $divclasses = $class.' '.$class.'content'; - - if ($id) { - $id = ' id="'.$id.'"'; + if ($ids) { + $ids = ' id="'.$ids.'"'; } - $output .= ''; + $output .= ''; if ($return) { return $output; -- 2.39.5