mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 21:36:58 +01:00
Merge branch 'MDL-27391-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
3c1ee10423
@ -603,8 +603,8 @@ class completion_info {
|
||||
* @return void
|
||||
*/
|
||||
public function set_module_viewed($cm, $userid=0) {
|
||||
global $PAGE;
|
||||
if ($PAGE->headerprinted) {
|
||||
global $PAGE, $UNITTEST;
|
||||
if ($PAGE->headerprinted && empty($UNITTEST->running)) {
|
||||
debugging('set_module_viewed must be called before header is printed',
|
||||
DEBUG_DEVELOPER);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user