Fixed use of reading functions (it had changed name)
This commit is contained in:
+1
-1
@@ -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\">";
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user