From 985e71638da041e256623efb8dd3045a9ac5693c Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Fri, 25 Mar 2022 15:40:15 +0000 Subject: [PATCH] [Migration][Options] set the theme to auto load Automatically load the theme which fixes issue of it not working correctly when not logged in as reported by @phl0 --- application/config/migration.php | 2 +- .../migrations/086_options_autoload_theme.php | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 application/migrations/086_options_autoload_theme.php diff --git a/application/config/migration.php b/application/config/migration.php index 75b8d24c3..976c37a6d 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 85; +$config['migration_version'] = 86; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/086_options_autoload_theme.php b/application/migrations/086_options_autoload_theme.php new file mode 100644 index 000000000..99e725744 --- /dev/null +++ b/application/migrations/086_options_autoload_theme.php @@ -0,0 +1,24 @@ +db->set('autoload', 'yes'); + $this->db->where('option_name', "theme"); + $this->db->update('options'); + } + + public function down() + { + $this->db->set('autoload', 'no'); + $this->db->where('option_name', "theme"); + $this->db->update('options'); + } +} \ No newline at end of file