Use is_internal_email function (see bug 978)
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@
|
||||
$table->data[] = array("<b><a href=\"auth.php\">".get_string("authentication")."</a></b>",
|
||||
get_string("adminhelpauthentication"));
|
||||
|
||||
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
|
||||
if (is_internal_auth()) {
|
||||
$table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/user.php?newuser=true\">".get_string("addnewuser")."</a></b>",
|
||||
get_string("adminhelpaddnewuser"));
|
||||
$table->data[] = array("<b><a href=\"$CFG->wwwroot/$CFG->admin/uploaduser.php\">".get_string("uploadusers")."</a></b>",
|
||||
|
||||
+1
-1
@@ -929,7 +929,7 @@ function print_course_admin_links($course, $width=180) {
|
||||
$admindata[]="<a href=\"user.php?id=$course->id&user=$USER->id\">".get_string("activityreport")."...</a>";
|
||||
$adminicon[]="<img src=\"$CFG->pixpath/i/report.gif\" height=16 width=16 alt=\"\">";
|
||||
}
|
||||
if ($CFG->auth == "email" or $CFG->auth == "none" or $CFG->auth == "manual") {
|
||||
if (is_internal_auth()) {
|
||||
$admindata[]="<a href=\"$CFG->wwwroot/login/change_password.php?id=$course->id\">".
|
||||
get_string("changepassword")."...</a>";
|
||||
$adminicon[]="<img src=\"$CFG->pixpath/i/user.gif\" height=16 width=16 alt=\"\">";
|
||||
|
||||
Reference in New Issue
Block a user