theme service fix

This commit is contained in:
2025-01-24 15:00:22 +03:00
parent b1dacff877
commit fc70051761
123 changed files with 4 additions and 11741 deletions

View File

@ -98,7 +98,7 @@ class ThemeService
{
if (isset($themeInfo['theme_class'])) {
if (isset($themeInfo['theme_class_file'])) {
require_once $themeInfo['theme_class_file'];
require_once getConst($themeInfo['theme_class_file']);
}
$themeClass = new $themeInfo['theme_class']();
$themeClass->init();
@ -113,7 +113,7 @@ class ThemeService
{
if (isset($themeInfo['theme_class'])) {
if (isset($themeInfo['theme_class_file'])) {
require_once $themeInfo['theme_class_file'];
require_once getConst($themeInfo['theme_class_file']);
}
$themeClass = new $themeInfo['theme_class']();
$themeClass->deactivate();
@ -234,12 +234,12 @@ class ThemeService
return false;
}
if (!file_exists($tmpThemeDirFull . "meta/manifest.json")){
if (!file_exists($tmpThemeDirFull . "meta/app/manifest.json")){
$this->addError('manifest.json not found');
return false;
}
$manifestJson = getConst(file_get_contents($tmpThemeDirFull . "meta/manifest.json"));
$manifestJson = getConst(file_get_contents($tmpThemeDirFull . "meta/app/manifest.json"));
$manifest = Manifest::getWithVars($manifestJson);
$fileHelper = new Files();