diff --git a/Gruntfile.js b/Gruntfile.js index d3744fb..31add68 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -47,43 +47,12 @@ module.exports = function(grunt) { // Load all grunt tasks. grunt.loadNpmTasks("grunt-stylelint"); grunt.loadNpmTasks("grunt-eslint"); - grunt.loadNpmTasks("grunt-contrib-uglify"); - - /** - * Function to generate the destination for the uglify task - * (e.g. build/file.min.js). This function will be passed to - * the rename property of files array when building dynamically: - * http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically - * - * @param {String} destPath the current destination - * @param {String} srcPath the matched src path - * @return {String} The rewritten destination path. - */ - var uglifyRename = function(destPath, srcPath) { - destPath = srcPath.replace("src", "build"); - destPath = destPath.replace(".js", ".min.js"); - destPath = path.resolve(PWD, destPath); - return destPath; - }; grunt.initConfig({ eslint: { options: {quiet: !grunt.option("show-lint-warnings")}, amd: {src: amdSrc} }, - uglify: { - amd: { - files: [{ - expand: true, - src: amdSrc, - rename: uglifyRename - }], - options: { - report: "min", - sourceMap: true - } - } - }, watch: { options: { nospawn: true, diff --git a/classes/controller.php b/classes/controller.php index d472151..840cfc1 100644 --- a/classes/controller.php +++ b/classes/controller.php @@ -1107,7 +1107,7 @@ public static function get_views_icons(): array { 'topbycourse' => 't/sort_by', 'topbysite' => 't/award', 'lastmonth' => 'e/insert_date', - 'dynamichelps' => 'docs' + 'dynamichelps' => 'docs', ]; return $icons; diff --git a/db/access.php b/db/access.php index c8695c0..197b16f 100755 --- a/db/access.php +++ b/db/access.php @@ -14,7 +14,6 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . - /** * Block caps. *