mirror of
https://github.com/moodle/moodle.git
synced 2025-02-19 07:41:02 +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
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function set_module_viewed($cm, $userid=0) {
|
public function set_module_viewed($cm, $userid=0) {
|
||||||
global $PAGE;
|
global $PAGE, $UNITTEST;
|
||||||
if ($PAGE->headerprinted) {
|
if ($PAGE->headerprinted && empty($UNITTEST->running)) {
|
||||||
debugging('set_module_viewed must be called before header is printed',
|
debugging('set_module_viewed must be called before header is printed',
|
||||||
DEBUG_DEVELOPER);
|
DEBUG_DEVELOPER);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user