]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-21198 fixed another regression in last commit
authorPetr Skoda <skodak@moodle.org>
Sat, 2 Jan 2010 13:25:09 +0000 (13:25 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 2 Jan 2010 13:25:09 +0000 (13:25 +0000)
lib/outputrenderers.php

index 76294e9afe37696b7e2c1dde8c3cc0dac99a07b1..d332136ec69bacf1d3aeb2d867e1cb0695483180 100644 (file)
@@ -1141,10 +1141,10 @@ class core_renderer extends renderer_base {
         }
 
         if (!$linktext) {
-            $options['alt'] = $itle;
+            $options['alt'] = $title;
         }
 
-        $icon = $this->icon($image_or_url, $options);
+        $icon = $this->image($image_or_url, $options);
 
         if ($linktext) {
             $icon = $icon.$itle;