]> git.mjollnir.org Git - moodle.git/commitdiff
Added comment regarding $isteacher being deprecated in print_recent_activity()
authorvyshane <vyshane>
Fri, 22 Sep 2006 09:11:46 +0000 (09:11 +0000)
committervyshane <vyshane>
Fri, 22 Sep 2006 09:11:46 +0000 (09:11 +0000)
course/lib.php

index 34d265deee38a4bc0958288e896768dcd9de1901..00644157b962a9052973cbf7ab5240436bb6c188 100644 (file)
@@ -880,6 +880,15 @@ function print_recent_activity($course) {
         include_once($CFG->dirroot.'/mod/'.$mod->name.'/lib.php');
         $print_recent_activity = $mod->name.'_print_recent_activity';
         if (function_exists($print_recent_activity)) {
+            //
+            // NOTE:
+            //   $isteacher is to be deprecated!
+            //
+            // TODO:
+            //   1) Make sure that all _print_recent_activity functions are not
+            //      using the $isteacher value.
+            //   2) Remove the $isteacher parameter from the function calls.
+            //
             $modcontent = $print_recent_activity($course, $isteacher, $timestart);
             if ($modcontent) {
                 $content = true;