Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug in subscribe link

  • Loading branch information...
commit 9dc79114c2cbf34d5b963c07195cbd1e2d8a60ac 1 parent 2c309dc
martin authored
Showing with 6 additions and 6 deletions.
  1. +1 −1  course/social.php
  2. +5 −5 course/topics.php
View
2  course/social.php
@@ -87,7 +87,7 @@
} else {
$subtext = "Subscribe me by mail";
}
- $headertext = "<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0><TR><TD>Social Forum - Current Topics<TD ALIGN=RIGHT><FONT SIZE=1><A HREF=\"../mod/discuss/subscribe.php?id=$social->id\">$subtext</A></TD></TR></TABLE>";
+ $headertext = "<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0><TR><TD>Social Forum - Current Topics<TD ALIGN=RIGHT><FONT SIZE=1><A HREF=\"../mod/forum/subscribe.php?id=$social->id\">$subtext</A></TD></TR></TABLE>";
print_simple_box("$headertext", $align="CENTER", $width="100%", $color="$THEME->cellheading"); ?>
<IMG ALT="" HEIGHT=7 SRC="../pix/spacer.gif"><BR>
View
10 course/topics.php
@@ -80,7 +80,7 @@
if (isteacher($course->id)) {
$adminicon[]="<IMG SRC=\"../pix/i/edit.gif\" HEIGHT=16 WIDTH=16 ALT=\"Edit\">";
- if ($USER->editing) {
+ if (isediting($course->id)) {
$admindata[]="<A HREF=\"view.php?id=$course->id&edit=off\">Turn editing off</A>";
} else {
$admindata[]="<A HREF=\"view.php?id=$course->id&edit=on\">Turn editing on</A>";
@@ -145,7 +145,7 @@
$thissection->id = insert_record("course_sections", $thissection);
}
- if ($USER->editing) {
+ if (isediting($course->id)) {
$thissection->summary .= "&nbsp;<A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"Edit summary\"></A></P>";
}
@@ -162,7 +162,7 @@
echo "<IMG SRC=\"../mod/$mod->modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$mod->modfullname\">";
echo " <A TITLE=\"$mod->modfullname\"";
echo " HREF=\"../mod/$mod->modname/view.php?id=$mod->id\">$instancename</A>";
- if ($USER->editing) {
+ if (isediting($course->id)) {
echo make_editing_buttons($mod->id);
}
echo "<BR>\n";
@@ -170,7 +170,7 @@
}
echo "</UL></P>\n";
- if ($USER->editing) {
+ if (isediting($course->id)) {
echo "<DIV ALIGN=right>";
popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$section&add=",
$modtypes, "section$section", "", "Add...");
@@ -185,7 +185,7 @@
} else {
echo "<A HREF=\"view.php?id=$course->id&topic=$section\" TITLE=\"Show only topic $section\"><IMG SRC=../pix/i/one.gif BORDER=0></A><BR><BR>";
}
- if ($USER->editing and $course->marker != $section) {
+ if (isediting($course->id) and $course->marker != $section) {
echo "<A HREF=\"view.php?id=$course->id&marker=$section\" TITLE=\"Mark this topic as the current topic\"><IMG SRC=../pix/i/marker.gif BORDER=0></A><BR><BR>";
}
echo "</TD>";
Please sign in to comment.
Something went wrong with that request. Please try again.