--- C:/Users/cceanse/AppData/Local/Temp/filepicker.js-revBASE.svn001.tmp.js Tue Mar 25 18:30:30 2014 +++ C:/Users/cceanse/Documents/moodleuclsvn-2.6.2/repository/filepicker.js Mon Jun 9 16:30:16 2014 @@ -595,10 +595,19 @@ M.core_filepicker.init = function(Y, options) { } // error checking if (data && data.error) { - Y.use('moodle-core-notification-ajaxexception', function () { + //-- ucl hack begin -- moodle/trac#55 + /*Y.use('moodle-core-notification-ajaxexception', function () { return new M.core.ajaxException(data); }); - this.fpnode.one('.fp-content').setContent(''); + this.fpnode.one('.fp-content').setContent('');*/ + // Roll back once we have a fix from moodle core team - https://tracker.moodle.org/browse/MDL-45923 + scope.print_msg(data.error, 'error'); + if (args.onerror) { + args.onerror(id,data,p); + } else { + this.fpnode.one('.fp-content').setContent(''); + } + //-- ucl hack end -- return; } else { if (data.msg) {