]> git.mjollnir.org Git - moodle.git/commitdiff
Hide simpletest on oracle and mssql until it works MDL-7337
authormoodler <moodler>
Tue, 7 Nov 2006 02:53:39 +0000 (02:53 +0000)
committermoodler <moodler>
Tue, 7 Nov 2006 02:53:39 +0000 (02:53 +0000)
admin/settings/top.php

index 9cac2c8868165f397ea79bdc14f100d3e6874ade..963db2141d7616cdb4f0ef87ee5ce8b98ebdb82d 100644 (file)
@@ -28,7 +28,12 @@ $ADMIN->add('root', new admin_category('appearance', get_string('appearance','ad
 $ADMIN->add('root', new admin_category('server', get_string('server','admin')));
 
 $ADMIN->add('root', new admin_category('reports', get_string('reports')));
-foreach(get_list_of_plugins('admin/report') as $plugin) {
+foreach (get_list_of_plugins('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->dbtype != 'mysql' && $CFG->dbtype != 'postgres7') {
+        continue;
+    }
+/// End of removable snippet
     $ADMIN->add('reports', new admin_externalpage('report'.$plugin, get_string($plugin, 'admin'), "$CFG->wwwroot/$CFG->admin/report/$plugin/index.php"));
 }