MDL-14637 Allow modules to have a settingstree.php when they want to do something more complex that just settings.php - needs to be supported in modules.php too.

Also remove support for the old config.php here, since it has been removed everywhere else too.
This commit is contained in:
tjhunt 2008-09-09 08:30:54 +00:00
parent 9528568bf0
commit 0a82a1bbc4

View File

@ -208,10 +208,9 @@
$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 = "";
}