diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
| commit | 1721544d5a71c0f3b4bc3b498893a65f4d9f1c84 (patch) | |
| tree | 6a44ae4720a0190927a836911ce28aa67604a0e5 /switch_theme.php | |
| parent | 8225200c6470d1abe939ca007b5915c82c601016 (diff) | |
| download | themes-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-x | switch_theme.php | 5 |
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 { |
