Fixed use of reading functions (it had changed name)

This commit is contained in:
martin
2002-08-01 05:55:23 +00:00
parent f98bb43f9d
commit 07e1f18900
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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[] = "<IMG SRC=\"../mod/reading/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"Reading\">";
+2 -2
View File
@@ -26,7 +26,7 @@
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
<TR>
<TD VALIGN="TOP" NOWRAP>
<? $readings = list_all_readings();
<? $readings = reading_list_all_readings();
if ($site->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");