@@ -814,7 +814,7 @@ discard block |
||
814 | 814 | 'filename' => empty($user_settings['filename']) ? '' : $user_settings['filename'], |
815 | 815 | 'custom_dir' => !empty($user_settings['attachment_type']) && $user_settings['attachment_type'] == 1, |
816 | 816 | 'id_attach' => isset($user_settings['id_attach']) ? $user_settings['id_attach'] : 0, |
817 | - 'width' => isset($user_settings['attachment_width']) > 0 ? $user_settings['attachment_width']: 0, |
|
817 | + 'width' => isset($user_settings['attachment_width']) > 0 ? $user_settings['attachment_width'] : 0, |
|
818 | 818 | 'height' => isset($user_settings['attachment_height']) > 0 ? $user_settings['attachment_height'] : 0, |
819 | 819 | ), |
820 | 820 | 'smiley_set' => isset($user_settings['smiley_set']) ? $user_settings['smiley_set'] : '', |
@@ -2708,8 +2708,7 @@ discard block |
||
2708 | 2708 | $context['css_files_order'] = array(); |
2709 | 2709 | |
2710 | 2710 | $params['seed'] = (!array_key_exists('seed', $params) || (array_key_exists('seed', $params) && $params['seed'] === true)) ? |
2711 | - (array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') : |
|
2712 | - (is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : ''); |
|
2711 | + (array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') : (is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : ''); |
|
2713 | 2712 | $params['force_current'] = isset($params['force_current']) ? $params['force_current'] : false; |
2714 | 2713 | $themeRef = !empty($params['default_theme']) ? 'default_theme' : 'theme'; |
2715 | 2714 | $params['minimize'] = isset($params['minimize']) ? $params['minimize'] : true; |
@@ -2823,8 +2822,7 @@ discard block |
||
2823 | 2822 | global $settings, $context, $modSettings; |
2824 | 2823 | |
2825 | 2824 | $params['seed'] = (!array_key_exists('seed', $params) || (array_key_exists('seed', $params) && $params['seed'] === true)) ? |
2826 | - (array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') : |
|
2827 | - (is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : ''); |
|
2825 | + (array_key_exists('browser_cache', $context) ? $context['browser_cache'] : '') : (is_string($params['seed']) ? '?' . ltrim($params['seed'], '?') : ''); |
|
2828 | 2826 | $params['force_current'] = isset($params['force_current']) ? $params['force_current'] : false; |
2829 | 2827 | $themeRef = !empty($params['default_theme']) ? 'default_theme' : 'theme'; |
2830 | 2828 | $params['async'] = isset($params['async']) ? $params['async'] : false; |
@@ -2927,7 +2925,7 @@ discard block |
||
2927 | 2925 | $elements[] = JavaScriptEscape($element); |
2928 | 2926 | } |
2929 | 2927 | |
2930 | - $value = '[' . implode(', ',$elements) . ']'; |
|
2928 | + $value = '[' . implode(', ', $elements) . ']'; |
|
2931 | 2929 | } |
2932 | 2930 | } |
2933 | 2931 | |
@@ -3608,8 +3606,7 @@ discard block |
||
3608 | 3606 | |
3609 | 3607 | // What accelerator we are going to try. |
3610 | 3608 | $cache_class_name = !empty($cache_accelerator) ? $cache_accelerator : CacheApi::APIS_DEFAULT; |
3611 | - $fully_qualified_class_name = !empty($overrideCache) ? $overrideCache : |
|
3612 | - CacheApi::APIS_NAMESPACE . $cache_class_name; |
|
3609 | + $fully_qualified_class_name = !empty($overrideCache) ? $overrideCache : CacheApi::APIS_NAMESPACE . $cache_class_name; |
|
3613 | 3610 | |
3614 | 3611 | // Do some basic tests. |
3615 | 3612 | if (class_exists($fully_qualified_class_name)) |
@@ -3913,7 +3910,7 @@ discard block |
||
3913 | 3910 | $auth_secret = hash_file('sha256', $boarddir . '/Settings.php'); |
3914 | 3911 | |
3915 | 3912 | // Set the last error to now, but only every 15 minutes. Don't need to flood the logs. |
3916 | - if (empty($db_last_error) || ($db_last_error + 60*15) <= time()) |
|
3913 | + if (empty($db_last_error) || ($db_last_error + 60 * 15) <= time()) |
|
3917 | 3914 | { |
3918 | 3915 | updateDbLastError(time()); |
3919 | 3916 | loadLanguage('Errors'); |