Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed bug in subscribe link

  • Loading branch information...
commit 9dc79114c2cbf34d5b963c07195cbd1e2d8a60ac 1 parent 2c309dc
martin authored

Showing 2 changed files with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +1 1  course/social.php
  2. +5 5 course/topics.php
2  course/social.php
@@ -87,7 +87,7 @@
87 87 } else {
88 88 $subtext = "Subscribe me by mail";
89 89 }
90   - $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>";
  90 + $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>";
91 91 print_simple_box("$headertext", $align="CENTER", $width="100%", $color="$THEME->cellheading"); ?>
92 92 <IMG ALT="" HEIGHT=7 SRC="../pix/spacer.gif"><BR>
93 93
10 course/topics.php
@@ -80,7 +80,7 @@
80 80
81 81 if (isteacher($course->id)) {
82 82 $adminicon[]="<IMG SRC=\"../pix/i/edit.gif\" HEIGHT=16 WIDTH=16 ALT=\"Edit\">";
83   - if ($USER->editing) {
  83 + if (isediting($course->id)) {
84 84 $admindata[]="<A HREF=\"view.php?id=$course->id&edit=off\">Turn editing off</A>";
85 85 } else {
86 86 $admindata[]="<A HREF=\"view.php?id=$course->id&edit=on\">Turn editing on</A>";
@@ -145,7 +145,7 @@
145 145 $thissection->id = insert_record("course_sections", $thissection);
146 146 }
147 147
148   - if ($USER->editing) {
  148 + if (isediting($course->id)) {
149 149 $thissection->summary .= "&nbsp;<A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"Edit summary\"></A></P>";
150 150 }
151 151
@@ -162,7 +162,7 @@
162 162 echo "<IMG SRC=\"../mod/$mod->modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$mod->modfullname\">";
163 163 echo " <A TITLE=\"$mod->modfullname\"";
164 164 echo " HREF=\"../mod/$mod->modname/view.php?id=$mod->id\">$instancename</A>";
165   - if ($USER->editing) {
  165 + if (isediting($course->id)) {
166 166 echo make_editing_buttons($mod->id);
167 167 }
168 168 echo "<BR>\n";
@@ -170,7 +170,7 @@
170 170 }
171 171 echo "</UL></P>\n";
172 172
173   - if ($USER->editing) {
  173 + if (isediting($course->id)) {
174 174 echo "<DIV ALIGN=right>";
175 175 popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$section&add=",
176 176 $modtypes, "section$section", "", "Add...");
@@ -185,7 +185,7 @@
185 185 } else {
186 186 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>";
187 187 }
188   - if ($USER->editing and $course->marker != $section) {
  188 + if (isediting($course->id) and $course->marker != $section) {
189 189 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>";
190 190 }
191 191 echo "</TD>";

0 comments on commit 9dc7911

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