From: tjhunt Date: Tue, 9 Sep 2008 08:30:54 +0000 (+0000) Subject: MDL-14637 Allow modules to have a settingstree.php when they want to do something... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0a82a1bbc4144d2071eede6e82f04f2294596522;p=moodle.git 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. --- diff --git a/admin/modules.php b/admin/modules.php index 450b8003c5..b6afa1e4ce 100644 --- a/admin/modules.php +++ b/admin/modules.php @@ -208,10 +208,9 @@ $delete = "name&sesskey=$USER->sesskey\">$strdelete"; - 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 = "name\">$strsettings"; - } else if (file_exists("$CFG->dirroot/mod/$module->name/config.html")) { - $settings = "name\">$strsettings"; } else { $settings = ""; }