From: poltawski <poltawski>
Date: Sun, 23 Dec 2007 17:21:56 +0000 (+0000)
Subject: MDL-9981 - remove hardcoded admin path, merged from MOODLE_19_STABLE
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=97f3ae8777d0f65cd1e5bdbe2ff07c88e98f2e23;p=moodle.git

MDL-9981 - remove hardcoded admin path, merged from MOODLE_19_STABLE
---

diff --git a/admin/settings/top.php b/admin/settings/top.php
index de1717b417..8405824ab2 100644
--- a/admin/settings/top.php
+++ b/admin/settings/top.php
@@ -33,7 +33,7 @@ $ADMIN->add('root', new admin_category('server', get_string('server','admin')));
 $ADMIN->add('root', new admin_category('mnet', get_string('net','mnet')));
 
 $ADMIN->add('root', new admin_category('reports', get_string('reports')));
-foreach (get_list_of_plugins('admin/report') as $plugin) {
+foreach (get_list_of_plugins($CFG->admin.'/report') as $plugin) {
 /// This snippet is temporary until simpletest can be fixed to use xmldb.   See MDL-7377   XXX TODO
     if ($plugin == 'simpletest' && $CFG->dbfamily != 'mysql' && $CFG->dbfamily != 'postgres') {
         continue;