]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-21193 improved error messages in combo loader
authorPetr Skoda <skodak@moodle.org>
Tue, 29 Dec 2009 12:38:50 +0000 (12:38 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 29 Dec 2009 12:38:50 +0000 (12:38 +0000)
theme/yui_combo.php

index 7c2e78af6154ae3a68ba9d8411c56e4b7dbd2d15..b7899d8a139955feb497176ad274747420b0993a 100644 (file)
@@ -54,15 +54,18 @@ foreach ($parts as $part) {
     $part = min_clean_param($part, 'SAFEPATH');
     $bits = explode('/', $part);
     if (count($bits) < 2) {
-        combo_not_found();
+        $content .= "\n// Wrong combo resource $part!\n";
+        continue;
     }
     $version = $bits[0];
     if ($version != $CFG->yui3version and $version != $CFG->yui2version) {
-        combo_not_found();
+        $content .= "\n// Wrong combo version $part!\n";
+        continue;
     }
     $contentfile = "$CFG->libdir/yui/$part";
     if (!file_exists($contentfile) or !is_file($contentfile)) {
-        combo_not_found();
+        $content .= "\n// Combo resource $part not found!\n";
+        continue;
     }
     $filecontent = file_get_contents($contentfile);