Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 39580ae

Browse files
committed
Default modal is close
1 parent e59733a commit 39580ae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ggrachdev.debugbar/classes/general/BitrixDebugger/View/DebugBarView.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,14 @@ public static function render(Debugger $debugger): string {
9999

100100
self::addViewInRightSlot('<a target="_blank" href="/bitrix/admin/site_edit.php?LID=' . \SITE_ID . '&lang=ru" class="ggrach__debug-bar__right__item ggrach_background_success" title="Текущая страница">' . SITE_CHARSET . '</a>');
101101

102-
$debugBarIsClosed = $_COOKIE['ggrach_debug_bar_is_close'] == 'true';
102+
if(!isset($_COOKIE['ggrach_debug_bar_is_close']))
103+
{
104+
$debugBarIsClosed = true;
105+
}
106+
else
107+
{
108+
$debugBarIsClosed = $_COOKIE['ggrach_debug_bar_is_close'] == 'true';
109+
}
103110

104111
$closeIcon = $debugBarIsClosed ? '&lt;' : '&#215;';
105112

0 commit comments

Comments
 (0)