MDL-64591 User tours: don't show during redirects & other bad times

This commit is contained in:
Tim Hunt
2019-02-26 13:05:51 +00:00
parent 289475f3da
commit 2cbf3ea580
+6
View File
@@ -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;
}