From e683263f7fdd0207114c3eacdadd194a48bd2db8 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 19 Mar 2007 10:37:44 +0000 Subject: [PATCH] MDL-8904 please no extract()s, fixed double string filtering; merged from MOODLE_18_STABLE --- lib/weblib.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index cd800d3bc9..e59f3347b9 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2834,7 +2834,7 @@ function check_theme_arrows() { * Prints breadcrumb trail of links, called in theme/-/header.html * * @uses $CFG - * @param string $navigation The breadcrumb navigation string to be printed + * @param mixed $navigation The breadcrumb navigation string to be printed * @param string $separator The breadcrumb trail separator. The default 0 leads to the use * of $THEME->rarrow, themes could use '→', '/', or '' for a style-sheet solution. * @param boolean $return False to echo the breadcrumb string (default), true to return it. @@ -2859,10 +2859,10 @@ function print_navigation ($navigation, $separator=0, $return=false) { foreach ($ar as $a) { if (strpos($a, '') === false) { - $navigation[] = array('title' => trim(format_string($a)), 'url' => ''); + $navigation[] = array('title' => $a, 'url' => ''); } else { if (preg_match('/(.*)<\/a>/', $a, $matches)) { - $navigation[] = array('title' => trim(format_string($matches[2])), 'url' => $matches[1]); + $navigation[] = array('title' => $matches[2], 'url' => $matches[1]); } } } @@ -2878,18 +2878,19 @@ function print_navigation ($navigation, $separator=0, $return=false) { $output .= '

'.$nav_text."