MDL-22550 grrr, fixing regression, missed the MDL number in previous commit in this...
authorPetr Skoda <skodak@moodle.org>
Sat, 22 May 2010 19:30:33 +0000 (19:30 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 22 May 2010 19:30:33 +0000 (19:30 +0000)
lib/javascript.php

index 5c32207..6363566 100644 (file)
@@ -47,7 +47,7 @@ foreach ($files as $fsfile) {
         // hackers - not in dirroot
         continue;
     }
-    if (substr($jsfile, -1) !== '.js') {
+    if (substr($jsfile, -3) !== '.js') {
         // hackers - not a JS file
         continue;
     }