Skip to content

Commit

Permalink
MDL-21440 - replacing hardcoded string with language string.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwijaya committed Jan 28, 2010
1 parent d8b29f5 commit 8fed14f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions admin/settings/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@

// "modulesecurity" settingpage
$temp = new admin_settingpage('modulesecurity', get_string('modulesecurity', 'admin'));
$temp->add(new admin_setting_configselect('restrictmodulesfor', get_string('restrictmodulesfor', 'admin'), get_string('configrestrictmodulesfor', 'admin'), 'none', array('none' => 'No courses',
'all' => 'All courses',
'requested' => 'Requested courses')));
$temp->add(new admin_setting_configselect('restrictmodulesfor', get_string('restrictmodulesfor', 'admin'), get_string('configrestrictmodulesfor', 'admin'), 'none', array('none' => get_string('nocourses'),
'all' => get_string('fulllistofcourses'),
'requested' => get_string('requestedcourses'))));
$temp->add(new admin_setting_configcheckbox('restrictbydefault', get_string('restrictbydefault', 'admin'), get_string('configrestrictbydefault', 'admin'), 0));
if (!$options = $DB->get_records('modules')) {
$options = array();
Expand Down
4 changes: 3 additions & 1 deletion lang/en_utf8/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -1820,4 +1820,6 @@

$string['authenticationplugins'] = 'Authentication Plugins';
$string['chooseauthmethod'] = 'Choose authentication plugin';
?>
$string['nocourses'] = 'No courses';
$string['requestedcourses'] = 'Requested courses';
?>

0 comments on commit 8fed14f

Please sign in to comment.