during upgrade, use the new default Piwigo theme (modus) instead of hardcoded "elegant"

... and make sure the default Piwigo theme is active before that.
This commit is contained in:
plegall
2019-10-08 12:23:54 +02:00
parent 087284eafc
commit 8fe4305d35
3 changed files with 31 additions and 15 deletions
+8 -8
View File
@@ -1,10 +1,10 @@
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
@@ -29,7 +29,7 @@ class updates
{
$this->types = array($page);
}
$this->default_themes = array('clear', 'dark', 'Sylvia', 'elegant', 'smartpocket');
$this->default_themes = array('modus', 'elegant', 'smartpocket');
$this->default_plugins = array('AdminTools', 'TakeATour', 'language_switch', 'LocalFilesEditor');
foreach ($this->types as $type)