Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add manage database link to home page admin links if necessary

  • Loading branch information...
commit 077f9a67d08ba2f6e90bd7268c1f4180e959d3d9 1 parent 34a0cda
martin authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 course/lib.php
View
4 course/lib.php
@@ -491,6 +491,10 @@ function print_admin_links ($siteid, $width=180) {
$modicon[]=$icon;
$moddata[]="<A HREF=\"$CFG->wwwroot/admin/lang.php\">".get_string("checklanguage")."</A>";
$modicon[]=$icon;
+ if (file_exists("$CFG->dirroot/admin/$CFG->dbtype")) {
+ $moddata[]="<A HREF=\"$CFG->wwwroot/admin/$CFG->dbtype/\">".get_string("managedatabase")."</A>";
+ $modicon[]=$icon;
+ }
$moddata[]="<HR>";
$modicon[]="";
$moddata[]="<A HREF=\"$CFG->wwwroot/course/edit.php\">".get_string("addnewcourse")."</A>";
Please sign in to comment.
Something went wrong with that request. Please try again.