Skip to content

Commit f0b9141

Browse files
committed
Fix drawer popup message when debug is enable
1 parent a261325 commit f0b9141

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

layout/frontpage.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@
135135
'sideadminblocks' => $adminblockshtml,
136136
'hasblocks' => $hasblocks,
137137
'hasadminblocks' => is_siteadmin(),
138-
'blockdraweropen' => $blockdraweropen,
139138
'forceblockdraweropen' => $forceblockdraweropen,
140139
'bodyattributes' => $bodyattributes,
141140
'primarymoremenu' => $primarymenu['moremenu'],
@@ -177,4 +176,9 @@
177176
'databs' => $databs,
178177
];
179178

179+
// Just enter in this if the debug mode is not enabled.
180+
if ($blockdraweropen && debugging() == false) {
181+
$templatecontext['blockdraweropen'] = $blockdraweropen;
182+
}
183+
180184
echo $OUTPUT->render_from_template('theme_trema/frontpage', $templatecontext);

0 commit comments

Comments
 (0)