MDL-31590 Correct title of error dialogue on filepicker
[moodle.git] / 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) {