]> git.mjollnir.org Git - moodle.git/commit
According to the final comments in SC#65:
authordefacer <defacer>
Sun, 23 Jan 2005 21:38:01 +0000 (21:38 +0000)
committerdefacer <defacer>
Sun, 23 Jan 2005 21:38:01 +0000 (21:38 +0000)
commit9407d4563f187cf82f9e15b3c350b7e983ff0f0f
tree46b06f1dceaac743a8bd2a7ac7627b9536b04e87
parentcae46b18c63a9551b611c9dda4504bce98c16dcb
According to the final comments in SC#65:

Made isteacher() require that the first parameter (course id) be
specified and non-empty. If it is empty, [i.e., 0, which was used to
simulate what has now become isteacherinanycourse()], then the return
value IS correct but a warning is printed on screen. This should allow
us to track down any such calls in legacy modules without breaking Moodle.

The correct way to check for teacher status in ANY course is now to
call isteacherinanycourse().
blocks/participants/block_participants.php
lib/datalib.php
lib/moodlelib.php
mod/quiz/preview.php
mod/quiz/quizfile.php
user/index.php
user/view.php