mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-16166 centralised enabling of subsystems, fixed some warnings and general cleanup
This commit is contained in:
parent
3c184e1464
commit
90658eefb0
24 changed files with 84 additions and 48 deletions
|
@ -148,11 +148,10 @@ if ($hassiteconfig) {
|
|||
$manage = get_string('manageportfolios', 'portfolio');
|
||||
$url = "$CFG->wwwroot/$CFG->admin/portfolio.php";
|
||||
|
||||
$ADMIN->add('modules', new admin_category('portfoliosettings', $catname));
|
||||
$ADMIN->add('modules', new admin_category('portfoliosettings', $catname, empty($CFG->enableportfolios)));
|
||||
|
||||
// jump through hoops to do what we want
|
||||
$temp = new admin_settingpage('manageportfolios', get_string('manageportfolios', 'portfolio'));
|
||||
$temp->add(new admin_setting_configcheckbox('portfolioenabled', get_string('enabled', 'portfolio'), get_string('enableddesc', 'portfolio'), false));
|
||||
$temp->add(new admin_setting_manageportfolio());
|
||||
|
||||
$ADMIN->add('portfoliosettings', $temp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue