summaryrefslogtreecommitdiff
path: root/switch_theme.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:55:19 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:55:19 +0100
commit1721544d5a71c0f3b4bc3b498893a65f4d9f1c84 (patch)
tree6a44ae4720a0190927a836911ce28aa67604a0e5 /switch_theme.php
parent8225200c6470d1abe939ca007b5915c82c601016 (diff)
downloadthemes-1721544d5a71c0f3b4bc3b498893a65f4d9f1c84.tar.gz
themes-1721544d5a71c0f3b4bc3b498893a65f4d9f1c84.tar.bz2
themes-1721544d5a71c0f3b4bc3b498893a65f4d9f1c84.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'switch_theme.php')
-rwxr-xr-xswitch_theme.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/switch_theme.php b/switch_theme.php
index 843f32c..e3a80d3 100755
--- a/switch_theme.php
+++ b/switch_theme.php
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @version $Header$
* @package themes
@@ -9,14 +9,13 @@
* Setup
*/
require_once '../kernel/includes/setup_inc.php';
-use Bitweaver\BitBase;
$orig_url = $_SERVER['HTTP_REFERER'] ?? $bit_index;
if (isset($_GET['theme']) && $gBitSystem->getConfig('users_themes') == 'y'){
$new_theme = $_GET['theme'];
- if(isset($gBitUser) && $gBitSystem->getConfig('users_preferences') == 'y' ) {
+ if(isset($gBitUser) && $gBitSystem->getConfig('users_preferences') == 'y' ) {
$gBitUser->storePreference('theme',$new_theme);
setcookie('bw-theme', '', time()-3600*24*30*12, $gBitSystem->getConfig('cookie_path'), $gBitSystem->getConfig('cookie_domain'));
} else {