diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index b46e480..924e104 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -38,7 +38,7 @@ class Navigation */ public static function install(string $path = null, DatabasePool $dbPool = null) : void { - $navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true); + $navData = \json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true); $class = '\\Modules\\Navigation\\Admin\\Installer'; /** @var $class \Modules\Navigation\Admin\Installer */ diff --git a/Theme/Backend/monitoring-logs-single.tpl.php b/Theme/Backend/monitoring-logs-single.tpl.php index ad7dcb5..e5b6e55 100644 --- a/Theme/Backend/monitoring-logs-single.tpl.php +++ b/Theme/Backend/monitoring-logs-single.tpl.php @@ -16,7 +16,7 @@ $log = $this->app->logger->getByLine((int) $this->request->getData('id') ?? 1); $temp = trim($log['backtrace']); -$log['backtrace'] = json_decode($temp, true); +$log['backtrace'] = \json_decode($temp, true); $details = '* Uri: `' . trim($log['path']) . "`\n" . '* Level: `' . trim($log['level']) . "`\n" @@ -25,7 +25,7 @@ $details = '* Uri: `' . trim($log['path']) . "`\n" . '* Line: `' . trim($log['line']) . "`\n" . '* Version: `' . trim($log['version']) . "`\n" . '* OS: `' . trim($log['os']) . "`\n\n" - . "Backtrace: \n\n```\n" . json_encode($log['backtrace'], JSON_PRETTY_PRINT); + . "Backtrace: \n\n```\n" . \json_encode($log['backtrace'], JSON_PRETTY_PRINT); echo $this->getData('nav')->render(); ?> @@ -55,7 +55,7 @@ echo $this->getData('nav')->render(); ?>
= $this->printHtml(json_encode($log['backtrace'], JSON_PRETTY_PRINT)); ?>+
= $this->printHtml(\json_encode($log['backtrace'], JSON_PRETTY_PRINT)); ?>