]> git.mjollnir.org Git - moodle.git/commitdiff
Hack to link from the admin interface to the XMLDB editor.
authorstronk7 <stronk7>
Mon, 7 Aug 2006 19:47:03 +0000 (19:47 +0000)
committerstronk7 <stronk7>
Mon, 7 Aug 2006 19:47:03 +0000 (19:47 +0000)
admin/index.php
admin/misc.php

index 899d99925d80552b269dceff073e724331ced549..2bbd5d71efc7e73221e1e2bb53ff6f0ffbd9c9fc 100644 (file)
         $miscdata .= '<div class="adminlink"><a href="'.$CFG->dbtype.'/frame.php">'.get_string('managedatabase').
                                 '</a> - <span class="explanation">'.get_string('adminhelpmanagedatabase').'</span></div>';
     }
+/// Hack to show the XMLDB editor
+    if (file_exists("$CFG->dirroot/$CFG->admin/xmldb")) {
+        $miscdata .= '<div class="adminlink"><a href="xmldb/index.php">'.get_string('xmldbeditor').
+                                '</a> - <span class="explanation">'.get_string('adminhelpxmldbeditor').'</span></div>';
+    }
 
     $table->data[] = array('<strong><a href="misc.php">'.get_string('miscellaneous').'</a></strong>', $miscdata);
 
index 6aa599ddc33007e816517d9a06a44c0a4d876e81..16afcc8487beeb60fd629eaf571fb8bb5aa8bcbc 100644 (file)
         $table->data[] = array('<b><a href="'.$CFG->dbtype.'/frame.php">'.get_string('managedatabase')."</a></b>",
                            get_string('adminhelpmanagedatabase'));
     }
+/// Hack to show the XMLDB editor
+    if (file_exists("$CFG->dirroot/$CFG->admin/xmldb")) {
+        $table->data[] = array('<b><a href="xmldb/index.php">'.get_string('xmldbeditor')."</a></b>",
+                           get_string('adminhelpxmldbeditor'));
+    }
 
     print_table($table);