Reload theme variable @baseTheme after flushing cache (#6701)

This commit is contained in:
Yuriy Bakhtin 2023-12-05 23:20:50 +01:00 committed by GitHub
parent d78e0edbed
commit 6f5e57cbf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ HumHub Changelog
- Fix #6674: Fix visibility of draft and scheduled content on dashboard
- Fix #6679: On the space invitation by link page, the language chooser doesn't save the selected language
- Fix #6677: Do not check mobile push module in requirements check on installation
- Fix #6700: Reload theme variable `@baseTheme` after flushing cache
1.15.0 (November 6, 2023)
--------------------------------

View File

@ -129,7 +129,7 @@ class SettingController extends Controller
if ($form->load(Yii::$app->request->post()) && $form->validate() && $form->save()) {
Yii::$app->cache->flush();
Yii::$app->assetManager->clear();
Yii::$app->view->theme->variables->flushCache();
Yii::$app->view->theme->activate();
$this->view->success(Yii::t('AdminModule.settings', 'Saved and flushed cache'));
return $this->redirect(['/admin/setting/caching']);
}