fixes #1042 set Modus as default theme

This commit is contained in:
plegall
2019-06-28 11:21:18 +02:00
parent 5436c48ead
commit 3999bff326
3 changed files with 6 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ function activate_core_themes()
$themes = new themes();
foreach ($themes->fs_themes as $theme_id => $fs_theme)
{
if (in_array($theme_id, array('elegant', 'smartpocket')))
if (in_array($theme_id, array('modus', 'smartpocket')))
{
$themes->perform_action('activate', $theme_id);
}

View File

@@ -9,7 +9,10 @@
// Default settings
define('PHPWG_VERSION', '2.10.0beta1');
define('PHPWG_DEFAULT_LANGUAGE', 'en_UK');
define('PHPWG_DEFAULT_TEMPLATE', 'elegant');
// 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)
define('PHPWG_DEFAULT_TEMPLATE', 'modus');
define('PHPWG_THEMES_PATH', $conf['themes_dir'].'/');
defined('PWG_COMBINED_DIR') or define('PWG_COMBINED_DIR', $conf['data_location'].'combined/');

View File

@@ -474,7 +474,7 @@ CREATE TABLE `piwigo_user_infos` (
`show_nb_comments` enum('true','false') NOT NULL default 'false',
`show_nb_hits` enum('true','false') NOT NULL default 'false',
`recent_period` tinyint(3) unsigned NOT NULL default '7',
`theme` varchar(255) NOT NULL default 'elegant',
`theme` varchar(255) NOT NULL default 'modus',
`registration_date` datetime NOT NULL default '1970-01-01 00:00:00',
`enabled_high` enum('true','false') NOT NULL default 'true',
`level` tinyint unsigned NOT NULL default '0',