fix При установке модуля неправильно записывались настройки

This commit is contained in:
origami11@yandex.ru 2022-12-15 18:16:58 +03:00
parent ab13ebd289
commit 36b7d93a98
2 changed files with 10 additions and 10 deletions

View file

@ -82,7 +82,7 @@ class Action
public function installPath($name)
{
$basePath = $this->config->get('site', 'path');
$basePath = $this->config->get('system', 'path');
return Path::join($basePath, "modules", $name);
}

View file

@ -98,15 +98,15 @@ class Installer
$result[]=$res;
}
}
}
// Обновление версии меню
$registry->removeKey($name);
$registry->set($name, $settings->get('settings'));
$registry->set($name,
array('version' => $version_new,
'time' => filemtime($setup)));
}
$registry->set($name, [
'version' => $version_new,
'time' => filemtime($setup)
]);
$registry->writeKey([$name], $settings->get('settings'));
$registry->write();
}