From: martin
Date: Tue, 30 Jul 2002 03:35:53 +0000 (+0000)
Subject: Fixed bug in subscribe link
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9dc79114c2cbf34d5b963c07195cbd1e2d8a60ac;p=moodle.git
Fixed bug in subscribe link
---
diff --git a/course/social.php b/course/social.php
index 4c08863e97..8efa334f79 100644
--- a/course/social.php
+++ b/course/social.php
@@ -87,7 +87,7 @@
} else {
$subtext = "Subscribe me by mail";
}
- $headertext = "";
+ $headertext = "";
print_simple_box("$headertext", $align="CENTER", $width="100%", $color="$THEME->cellheading"); ?>

diff --git a/course/topics.php b/course/topics.php
index ba4df90bd1..4a5b174193 100644
--- a/course/topics.php
+++ b/course/topics.php
@@ -80,7 +80,7 @@
if (isteacher($course->id)) {
$adminicon[]="
";
- if ($USER->editing) {
+ if (isediting($course->id)) {
$admindata[]="id&edit=off\">Turn editing off";
} else {
$admindata[]="id&edit=on\">Turn editing on";
@@ -145,7 +145,7 @@
$thissection->id = insert_record("course_sections", $thissection);
}
- if ($USER->editing) {
+ if (isediting($course->id)) {
$thissection->summary .= " id>
";
}
@@ -162,7 +162,7 @@
echo "
modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$mod->modfullname\">";
echo " modfullname\"";
echo " HREF=\"../mod/$mod->modname/view.php?id=$mod->id\">$instancename";
- if ($USER->editing) {
+ if (isediting($course->id)) {
echo make_editing_buttons($mod->id);
}
echo "
\n";
@@ -170,7 +170,7 @@
}
echo "\n";
- if ($USER->editing) {
+ if (isediting($course->id)) {
echo "