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
+4 -3
View File
@@ -9,9 +9,10 @@
// Default settings
define('PHPWG_VERSION', '2.10.0');
define('PHPWG_DEFAULT_LANGUAGE', 'en_UK');
// this constant is actually never used, the true default theme is the theme or user "guest",
// which is initialized with column user_infos.theme default value
// (see file install/piwigo_structure-mysql.sql)
// this constant is only used in the upgrade process, the true default theme
// is the theme of user "guest", which is initialized with column user_infos.theme
// default value (see file install/piwigo_structure-mysql.sql)
define('PHPWG_DEFAULT_TEMPLATE', 'modus');
define('PHPWG_THEMES_PATH', $conf['themes_dir'].'/');