Skip to content

Commit

Permalink
fixes #1042 set Modus as default theme
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Jun 28, 2019
1 parent 5436c48 commit 3999bff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin/include/functions_install.inc.php
Expand Up @@ -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);
}
Expand Down
5 changes: 4 additions & 1 deletion include/constants.php
Expand Up @@ -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/');
Expand Down
2 changes: 1 addition & 1 deletion install/piwigo_structure-mysql.sql
Expand Up @@ -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',
Expand Down

0 comments on commit 3999bff

Please sign in to comment.