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

Commit 9a93b72

Browse files
committed
Улучшения
1 parent c5287b0 commit 9a93b72

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

initializers/server.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@
3737
*/
3838
$GLOBALS["DD"]->getConfiguratorDebugger()->setShowModes(['debug_bar']);
3939

40-
function DD() {
40+
function DD(...$data = []) {
41+
if (!empty($data)) {
42+
foreach ($data as $item) {
43+
$GLOBALS["DD"]->notice($item);
44+
}
45+
}
46+
4147
return $GLOBALS["DD"];
4248
}
4349

module/ggrachdev.debugbar/include.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,18 @@
3636
*/
3737
$GLOBALS["DD"]->getConfiguratorDebugger()->setShowModes(['debug_bar']);
3838

39-
function DD() {
39+
function DD(...$data = []) {
40+
if (!empty($data)) {
41+
foreach ($data as $item) {
42+
$GLOBALS["DD"]->notice($item);
43+
}
44+
}
45+
4046
return $GLOBALS["DD"];
4147
}
4248

4349
if (\GGrach\BitrixDebugger\Validator\ShowModeDebuggerValidator::needShowInDebugBar(DD()->getConfiguratorDebugger())) {
44-
50+
4551
$ggrachDirJs = "/bitrix/js/ggrachdev.debugbar";
4652
$ggrachDirCss = "/bitrix/css/ggrachdev.debugbar";
4753

0 commit comments

Comments
 (0)