From: cajus Date: Thu, 1 Oct 2009 11:02:22 +0000 (+0000) Subject: Added lang to smarty vars by default X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e05f8560ae8d076facf04d325cad7856eba9af39;p=gosa.git Added lang to smarty vars by default git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14431 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 62df3fa3a..c088754c0 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -266,6 +266,7 @@ if (isset($_GET['reset'])){ /* show web frontend */ $smarty->assign ("date", date("l, dS F Y H:i:s O")); +$smarty->assign ("lang", preg_replace('/_.*$/', '', $lang)); $smarty->assign ("must", "*"); if (isset($plug)){ $plug= "?plug=$plug";