MDL-31590 Correct title of error dialogue on filepicker
authorAndrew Robert Nicols <andrew.nicols@luns.net.uk>
Tue, 14 Feb 2012 15:35:13 +0000 (15:35 +0000)
committerAndrew Robert Nicols <andrew.nicols@luns.net.uk>
Tue, 14 Feb 2012 15:42:02 +0000 (15:42 +0000)
Thanks to Gilles-Philippe Leblanc for this patch

repository/filepicker.js

index 804ff3f..72d0a56 100644 (file)
@@ -311,7 +311,7 @@ M.core_filepicker.init = function(Y, options) {
             if (type=='error') {
                 header = M.str.moodle.error;
             }
-            this.msg_dlg.setHeader(type);
+            this.msg_dlg.setHeader(header);
             this.msg_dlg.show();
         },
         build_tree: function(node, level) {