]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed use of reading functions (it had changed name)
authormartin <martin>
Thu, 1 Aug 2002 05:55:23 +0000 (05:55 +0000)
committermartin <martin>
Thu, 1 Aug 2002 05:55:23 +0000 (05:55 +0000)
course/social.php
index.php

index 95f23f2142c924664009d38e6d294449f361dc35..a5655282f93669fe09b33aa57fd06986649215e2 100644 (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\">";
index 354acd4deaf514fc635e14a1d4d4ef64355d7c22..79b51b176c551836bcd7d889179b9e64d68c1906 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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");