diff --git a/category.php b/category.php index f0a5161f7..8b0ade406 100644 --- a/category.php +++ b/category.php @@ -56,6 +56,12 @@ if ( isset($_GET['cat']) ) } } -redirect ( make_index_url($url_params) ); +$url = make_index_url($url_params); +if (!headers_sent()) +{ + set_status_header(302); + redirect_http( $url ); +} +redirect ( $url ); ?> \ No newline at end of file diff --git a/include/functions.inc.php b/include/functions.inc.php index e09339982..4666c0fcb 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -689,7 +689,10 @@ function redirect( $url , $msg = '', $refresh_time = 0) global $conf; // with RefeshTime <> 0, only html must be used - if (($conf['default_redirect_method'] == 'http') and ($refresh_time == 0)) + if ($conf['default_redirect_method']=='http' + and $refresh_time==0 + and !headers_sent() + ) { redirect_http($url); } diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl index c82571830..8d6f4ba1e 100644 --- a/template/yoga/picture.tpl +++ b/template/yoga/picture.tpl @@ -44,14 +44,14 @@ - + - {L_UP_ALT} + {lang:thumbnails} - +