X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Faccept-to-gettext.inc;h=5913a5098c3605284ccfb466ad57eb40032634ed;hb=30d939bbc772a9b8cdd9704e8034101e957ab972;hp=8c19933c45e9790c41a9466c3b09b01d4fa87e26;hpb=894aa86d1d4d57416d43052ea7b781ff680f03c9;p=gosa.git diff --git a/gosa-core/include/accept-to-gettext.inc b/gosa-core/include/accept-to-gettext.inc index 8c19933c4..5913a5098 100644 --- a/gosa-core/include/accept-to-gettext.inc +++ b/gosa-core/include/accept-to-gettext.inc @@ -198,10 +198,12 @@ function al2gt($gettextlangs, $mime) $gtparts=@preg_split("/\./",$curgtlang); $tmp=strtolower($gtparts[0]); $lang=preg_replace("/\_/", "-", $tmp); - header("Content-Language: $lang"); - if(isset($gtparts[1])){ - $charset=$gtparts[1]; - header("Content-Type: $mime; charset=$charset"); + if (!headers_sent()){ + header("Content-Language: $lang"); + if(isset($gtparts[1])){ + $charset=$gtparts[1]; + header("Content-Type: $mime; charset=$charset"); + } } return $curgtlang; }