From 388794fd4fba5d1593291a1af91b583fd87c3041 Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Tue, 13 May 2008 12:36:16 +0000 Subject: [PATCH] MDL-14618 HTML class so that link arrows can be themed --- lib/weblib.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 47a58d12de..38f54b1171 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3438,17 +3438,17 @@ function link_arrow_right($text, $url='', $accesshide=false, $addclass='') { $arrow = ''.$THEME->rarrow.''; $htmltext = ''; if ($text) { - $htmltext = $text.' '; + $htmltext = ''.$text.' '; if ($accesshide) { $htmltext = get_accesshide($htmltext); } } if ($url) { - $class = ''; + $class = 'arrow_link'; if ($addclass) { - $class =" class=\"$addclass\""; + $class .= ' '.$addclass; } - return ''.$htmltext.$arrow.''; + return ''.$htmltext.$arrow.''; } return $htmltext.$arrow; } @@ -3472,17 +3472,17 @@ function link_arrow_left($text, $url='', $accesshide=false, $addclass='') { $arrow = ''.$THEME->larrow.''; $htmltext = ''; if ($text) { - $htmltext = ' '.$text; + $htmltext = ' '.$text.''; if ($accesshide) { $htmltext = get_accesshide($htmltext); } } if ($url) { - $class = ''; + $class = 'arrow_link'; if ($addclass) { - $class =" class=\"$addclass\""; + $class .= ' '.$addclass; } - return ''.$arrow.$htmltext.''; + return ''.$arrow.$htmltext.''; } return $arrow.$htmltext; } -- 2.39.5