]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-21139 search for YUI3 images before YUI2
authorPetr Skoda <skodak@moodle.org>
Fri, 25 Dec 2009 10:40:30 +0000 (10:40 +0000)
committerPetr Skoda <skodak@moodle.org>
Fri, 25 Dec 2009 10:40:30 +0000 (10:40 +0000)
lib/outputlib.php

index 7b056cec7d9fc080ae37c1637ae6b8aa043bb036..18fd4a4b4e77cd9376aa1c3b914ff25e34bbeb39 100644 (file)
@@ -892,6 +892,10 @@ class theme_config {
                     return $imagefile;
                 }
             }
+            if ($imagefile = $this->image_exists("$CFG->libdir/yui/$CFG->yui3version/assets/skins/sam/$image")) {
+                // YUI3 takes precedence
+                return $imagefile;
+            }
             if ($imagefile = $this->image_exists("$CFG->libdir/yui/$CFG->yui2version/assets/skins/sam/$image")) {
                 return $imagefile;
             }