mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Tweaks to account for teacher editors
This commit is contained in:
parent
53b67df521
commit
8058858329
1 changed files with 2 additions and 2 deletions
|
@ -213,7 +213,7 @@
|
||||||
|
|
||||||
/// Print out all the courses
|
/// Print out all the courses
|
||||||
|
|
||||||
if (!$courses = get_courses($category->id, "sortorder ASC", "c.*", $totalcount, $page*$perpage, $perpage)) {
|
if (!$courses = get_courses($category->id, "c.sortorder ASC", "c.*", $totalcount, $page*$perpage, $perpage)) {
|
||||||
print_heading(get_string("nocoursesyet"));
|
print_heading(get_string("nocoursesyet"));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -315,7 +315,7 @@
|
||||||
echo "<input type=\"checkbox\" name=\"c$course->id\">";
|
echo "<input type=\"checkbox\" name=\"c$course->id\">";
|
||||||
$abletomovecourses = true;
|
$abletomovecourses = true;
|
||||||
|
|
||||||
} else if (isteacher($course->id)) {
|
} else if (isteacheredit($course->id)) {
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
echo "<a title=\"$strassignteachers\" href=\"$CFG->wwwroot/course/teacher.php?id=$course->id\"><img".
|
echo "<a title=\"$strassignteachers\" href=\"$CFG->wwwroot/course/teacher.php?id=$course->id\"><img".
|
||||||
" src=\"$pixpath/t/user.gif\" height=11 width=11 border=0></a> ";
|
" src=\"$pixpath/t/user.gif\" height=11 width=11 border=0></a> ";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue