From: martin Date: Thu, 1 Aug 2002 05:55:23 +0000 (+0000) Subject: Fixed use of reading functions (it had changed name) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=07e1f189008f1eace3ff29c8af0c2c70b65fe75e;p=moodle.git Fixed use of reading functions (it had changed name) --- diff --git a/course/social.php b/course/social.php index 95f23f2142..a5655282f9 100644 --- a/course/social.php +++ b/course/social.php @@ -27,7 +27,7 @@ print_simple_box("Resources", $align="CENTER", $width="100%", $color="$THEME->cellheading"); - if ($readings = list_all_readings($course->id, "timemodified DESC", 0, true)) { + if ($readings = reading_list_all_readings($course->id, "timemodified DESC", 0, true)) { foreach ($readings as $reading) { $readingdata[] = $reading; $readingicon[] = "\"Reading\""; diff --git a/index.php b/index.php index 354acd4dea..79b51b176c 100644 --- a/index.php +++ b/index.php @@ -26,7 +26,7 @@
- newsitems > 0 or $readings or isediting($site->id)) { @@ -77,7 +77,7 @@ if (isset($USER->id)) { $SESSION->fromdiscussion = "$CFG->wwwroot"; - if (is_subscribed($USER->id, $newsforum->id)) { + if (forum_is_subscribed($USER->id, $newsforum->id)) { $subtext = get_string("unsubscribe", "forum"); } else { $subtext = get_string("subscribe", "forum");