]> git.mjollnir.org Git - moodle.git/commitdiff
Don't even attempt to install the template module
authormoodler <moodler>
Thu, 12 Dec 2002 13:35:10 +0000 (13:35 +0000)
committermoodler <moodler>
Thu, 12 Dec 2002 13:35:10 +0000 (13:35 +0000)
admin/index.php

index d0932763784973a5425cc0447107a85ddc2449ab..f6fdd229cf68d334135b4fc6d20e171452e831c6 100644 (file)
     }
 
     foreach ($mods as $mod) {
+
+        if ($mod == "NEWMODULE") {   // Someone has unzipped the template, ignore it
+            continue;
+        }
+
         $fullmod = "$CFG->dirroot/mod/$mod";
 
         unset($module);