Skip to content
Browse files

Add a link if a "manage database" directory exists

  • Loading branch information...
1 parent fa8e1a3 commit 7fb83314328097710d462b28f62710319bc61ee3 martin committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 admin/index.php
View
3 admin/index.php
@@ -202,6 +202,9 @@
"<P><A HREF=\"../course/log.php?id=$site->id\">".get_string("sitelogs")."</A></P>".
"<P><A HREF=\"../theme/index.php\">".get_string("choosetheme")."</A></P>".
"<P><A HREF=\"lang.php\">".get_string("checklanguage")."</A></P>";
+ if (file_exists("$CFG->dirroot/admin/$CFG->dbtype")) {
+ $table->data[0][0] .= "<P><A HREF=\"$CFG->dbtype/\">".get_string("managedatabase")."</A></P>";
+ }
$table->data[0][1] = "<P><A HREF=\"../course/edit.php\">".get_string("addnewcourse")."</A></P>".
"<P><A HREF=\"../course/teacher.php\">".get_string("assignteachers")."</A></P>".
"<P><A HREF=\"../course/delete.php\">".get_string("deletecourse")."</A></P>";

0 comments on commit 7fb8331

Please sign in to comment.
Something went wrong with that request. Please try again.