Commit 70965278 authored by Tomáš Pospíšil's avatar Tomáš Pospíšil
Browse files

fix settings

parent 7465fc41
......@@ -56,14 +56,7 @@ final class Registrator
private function addSettingsBar(): void
{
$settingsBarPanel = function (): IBarPanel {
return new SettingsBarPanel($this->smarty, $this->settings);
};
$this->addPanel(
'settings', $settingsBarPanel
);
Debugger::getBar()->addPanel(new SettingsBarPanel($this->smarty, $this->settings));
$this->settings->append(new StringSetting(Tools\Dumper::PROJECT_PATH, 'Local project path'));
}
......@@ -118,7 +111,7 @@ final class Registrator
Debugger::$strictMode = $currentSetting->isOn();
Debugger::$maxLength = 512;
Debugger::$maxDepth = 5;
Debugger::enable('42@84.42.168.182,42@185.156.123.46', realpath($errorDir), Strings::replace($emailDeveloper, '/,;/', ','));
Debugger::enable('42@84.42.168.182,42@185.156.123.46,42@178.77.200.253', realpath($errorDir), Strings::replace($emailDeveloper, '/,;/', ','));
$this->addPanel(
__METHOD__,
......
......@@ -38,12 +38,12 @@ final class SettingsBarPanel extends BaseBarPanel
*/
public function generatePanel(): string
{
$switchers = $this->switchers->uasort(
$this->switchers->uasort(
static function (Setting $a, Setting $b) {
return $a->getName() <=> $b->getName();
}
);
$this->smarty->assign('switchers', $switchers);
$this->smarty->assign('switchers', $this->switchers);
return $this->smarty->fetch(dirname(__DIR__) . '/templates/settings/settings.tpl');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment