From 6d2385c0456b277807d0a504d31259ff359ee567 Mon Sep 17 00:00:00 2001 From: duergner Date: Wed, 8 Sep 2004 14:40:46 +0000 Subject: [PATCH] gettext test implemented --- lam/templates/login.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lam/templates/login.php b/lam/templates/login.php index c94248e5..e8c26acf 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -132,6 +132,11 @@ function display_LoginPage($config_object,$profile) StatusMessage("ERROR", "Your PHP has no LDAP support!", "Please install the LDAP extension for PHP."); echo "

"; } + // check if PHP has gettext support + if (! function_exists('gettext')) { + StatusMessage("ERROR", "Your PHP has no gettext support!", "Please install gettext and recompile PHP is compiled without gettext support."); + echo "

"; + } ?>