mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-64591 User tours: don't show during redirects & other bad times
This commit is contained in:
parent
f5dde8d05e
commit
591a7952c2
1 changed files with 6 additions and 0 deletions
|
@ -497,6 +497,12 @@ class helper {
|
|||
return;
|
||||
}
|
||||
|
||||
if (in_array($PAGE->pagelayout, ['maintenance', 'print', 'redirect'])) {
|
||||
// Do not try to show user tours inside iframe, in maintenance mode,
|
||||
// when printing, or during redirects.
|
||||
return;
|
||||
}
|
||||
|
||||
if (self::$bootstrapped) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue