]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14637 Allow modules to have a settingstree.php when they want to do something...
authortjhunt <tjhunt>
Tue, 9 Sep 2008 08:30:54 +0000 (08:30 +0000)
committertjhunt <tjhunt>
Tue, 9 Sep 2008 08:30:54 +0000 (08:30 +0000)
Also remove support for the old config.php here, since it has been removed everywhere else too.

admin/modules.php

index 450b8003c50403502a415e55f227f05f7a55f562..b6afa1e4ce9e767c2d550f0921be04254284f10f 100644 (file)
 
         $delete = "<a href=\"modules.php?delete=$module->name&amp;sesskey=$USER->sesskey\">$strdelete</a>";
 
-        if (file_exists("$CFG->dirroot/mod/$module->name/settings.php")) {
+        if (file_exists("$CFG->dirroot/mod/$module->name/settings.php") ||
+                file_exists("$CFG->dirroot/mod/$module->name/settingstree.php")) {
             $settings = "<a href=\"settings.php?section=modsetting$module->name\">$strsettings</a>";
-        } else if (file_exists("$CFG->dirroot/mod/$module->name/config.html")) {
-            $settings = "<a href=\"module.php?module=$module->name\">$strsettings</a>";
         } else {
             $settings = "";
         }