Skip to content

Commit

Permalink
MDL-14679 towards /admin/settings conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 31, 2008
1 parent 668fc89 commit 823e64a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/settings/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

$ADMIN->add('modules', new admin_category('modsettings', get_string('activities')));
$ADMIN->add('modsettings', new admin_page_managemods());
if ($modules = get_records('modules')) {
if ($modules = $DB->get_records('modules')) {
$modulebyname = array();

foreach ($modules as $module) {
Expand Down Expand Up @@ -41,7 +41,7 @@
$ADMIN->add('modules', new admin_category('blocksettings', get_string('blocks')));
$ADMIN->add('blocksettings', new admin_page_manageblocks());
$ADMIN->add('blocksettings', new admin_externalpage('stickyblocks', get_string('stickyblocks', 'admin'), "$CFG->wwwroot/$CFG->admin/stickyblocks.php"));
if (!empty($CFG->blocks_version) and $blocks = get_records('block')) {
if (!empty($CFG->blocks_version) and $blocks = $DB->get_records('block')) {
$blockbyname = array();

foreach ($blocks as $block) {
Expand Down
2 changes: 1 addition & 1 deletion admin/settings/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
'all' => 'All courses',
'requested' => 'Requested courses')));
$temp->add(new admin_setting_configcheckbox('restrictbydefault', get_string('restrictbydefault', 'admin'), get_string('configrestrictbydefault', 'admin'), 0));
if (!$options = get_records("modules")) {
if (!$options = $DB->get_records('modules')) {
$options = array();
}
$options2 = array();
Expand Down
2 changes: 1 addition & 1 deletion lib/adminlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4087,7 +4087,7 @@ function admin_externalpage_print_footer() {
* @return reference
*/
function &admin_get_root($reload=false, $requirefulltree=true) {
global $CFG;
global $CFG, $DB;

static $ADMIN = NULL;

Expand Down

0 comments on commit 823e64a

Please sign in to comment.