Skip to content
Permalink
Browse files

fixes #1042 set Modus as default theme

  • Loading branch information...
plegall committed Jun 28, 2019
1 parent 5436c48 commit 3999bff326758306f1434408466d138566c4422f
Showing with 6 additions and 3 deletions.
  1. +1 −1 admin/include/functions_install.inc.php
  2. +4 −1 include/constants.php
  3. +1 −1 install/piwigo_structure-mysql.sql
@@ -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);
}
@@ -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/');
@@ -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',

0 comments on commit 3999bff

Please sign in to comment.
You can’t perform that action at this time.