Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't even attempt to install the template module

  • Loading branch information...
commit c21f835ac36b35b1aa3e6971b7edfafbb17a77ac 1 parent 1d1b312
moodler authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 admin/index.php
5 admin/index.php
View
@@ -129,6 +129,11 @@
}
foreach ($mods as $mod) {
+
+ if ($mod == "NEWMODULE") { // Someone has unzipped the template, ignore it
+ continue;
+ }
+
$fullmod = "$CFG->dirroot/mod/$mod";
unset($module);
Please sign in to comment.
Something went wrong with that request. Please try again.