Skip to content

Commit

Permalink
Hack to link from the admin interface to the XMLDB editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Aug 7, 2006
1 parent ab8bfc7 commit 2bcd169
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@
$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);

Expand Down
5 changes: 5 additions & 0 deletions admin/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
$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);

Expand Down

0 comments on commit 2bcd169

Please sign in to comment.