mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-21 18:11:10 +00:00
Deprecated Baggy
- a big message will be displayed to user using the Baggy theme - switching from Material to Baggy is no more allowed in config (it'll be forced to material) - the theme label in the config for Baggy is now _Baggy (DEPRECATED)_
This commit is contained in:
parent
88fd7afeb5
commit
d86f296870
3 changed files with 22 additions and 1 deletions
|
@ -43,6 +43,16 @@ class ConfigController extends Controller
|
|||
$configForm->handleRequest($request);
|
||||
|
||||
if ($configForm->isSubmitted() && $configForm->isValid()) {
|
||||
// force theme to material to avoid using baggy
|
||||
if ('baggy' === $config->getTheme()) {
|
||||
$config->setTheme('material');
|
||||
|
||||
$this->addFlash(
|
||||
'notice',
|
||||
'Baggy is deprecated, forced to Material theme.'
|
||||
);
|
||||
}
|
||||
|
||||
$em->persist($config);
|
||||
$em->flush();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue