Commit 42c50d70 authored by sept_7's avatar sept_7

[FIX] Fix highlight filter initialization (thanx jb and chealer for the report)

parent 5fced395
...@@ -441,8 +441,8 @@ if (isset($_SESSION["$user_cookie_site"])) { ...@@ -441,8 +441,8 @@ if (isset($_SESSION["$user_cookie_site"])) {
} else { } else {
$user = NULL; $user = NULL;
if ($prefs['login_http_basic'] === 'always' || if ( isset($prefs['login_http_basic']) && $prefs['login_http_basic'] === 'always' ||
($prefs['login_http_basic'] === 'ssl' && isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')) { (isset($prefs['login_http_basic']) && $prefs['login_http_basic'] === 'ssl' && isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')) {
// Authenticate if the credentials are present, do nothing otherwise // Authenticate if the credentials are present, do nothing otherwise
if (isset($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) { if (isset($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) {
...@@ -571,7 +571,7 @@ unset($GLOBALS['HTTP_SESSION_VARS']); ...@@ -571,7 +571,7 @@ unset($GLOBALS['HTTP_SESSION_VARS']);
unset($GLOBALS['HTTP_POST_FILES']); unset($GLOBALS['HTTP_POST_FILES']);
// -------------------------------------------------------------- // --------------------------------------------------------------
if (isset($_REQUEST['highlight']) || (isset($prefs['feature_referer_highlight']) && $prefs['feature_referer_highlight'] == 'y')) { if (isset($_REQUEST['highlight']) || (isset($prefs['feature_referer_highlight']) && $prefs['feature_referer_highlight'] == 'y')) {
$smarty->registerFilter('output', 'highlight'); $smarty->loadFilter('output', 'highlight');
} }
if (function_exists('mb_internal_encoding')) { if (function_exists('mb_internal_encoding')) {
mb_internal_encoding("UTF-8"); mb_internal_encoding("UTF-8");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment