summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_shared.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-04-12 13:54:45 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-04-12 13:54:45 +0000
commit83a4e859f8ae505f06c184eb60577529ff6c4be8 (patch)
treeeea0a263dd79a697205db95f0a3b5600e6aa70c9 /roundcubemail/program/include/rcube_shared.inc
parent1d297be10effab84c7e084bfc70651f99b10e91b (diff)
Changed codebase to PHP5 with autoloader + added some new classes from the devel-vnext branch
git-svn-id: https://svn.roundcube.net/trunk@1291 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_shared.inc')
-rw-r--r--roundcubemail/program/include/rcube_shared.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc
index 815331195..c9cf4fbbf 100644
--- a/roundcubemail/program/include/rcube_shared.inc
+++ b/roundcubemail/program/include/rcube_shared.inc
@@ -91,7 +91,7 @@ function rcube_browser()
*/
function rcube_label($attrib)
{
- global $sess_user_lang, $INSTALL_PATH, $OUTPUT;
+ global $sess_user_lang, $OUTPUT;
static $sa_text_data, $s_language, $utf8_decode;
// extract attributes
@@ -111,8 +111,8 @@ function rcube_label($attrib)
$sa_text_data = array();
// get english labels (these should be complete)
- @include($INSTALL_PATH.'program/localization/en_US/labels.inc');
- @include($INSTALL_PATH.'program/localization/en_US/messages.inc');
+ @include(INSTALL_PATH.'program/localization/en_US/labels.inc');
+ @include(INSTALL_PATH.'program/localization/en_US/messages.inc');
if (is_array($labels))
$sa_text_data = $labels;
@@ -120,10 +120,10 @@ function rcube_label($attrib)
$sa_text_data = array_merge($sa_text_data, $messages);
// include user language files
- if ($sess_user_lang!='en' && is_dir($INSTALL_PATH.'program/localization/'.$sess_user_lang))
+ if ($sess_user_lang!='en' && is_dir(INSTALL_PATH.'program/localization/'.$sess_user_lang))
{
- include_once($INSTALL_PATH.'program/localization/'.$sess_user_lang.'/labels.inc');
- include_once($INSTALL_PATH.'program/localization/'.$sess_user_lang.'/messages.inc');
+ include_once(INSTALL_PATH.'program/localization/'.$sess_user_lang.'/labels.inc');
+ include_once(INSTALL_PATH.'program/localization/'.$sess_user_lang.'/messages.inc');
if (is_array($labels))
$sa_text_data = array_merge($sa_text_data, $labels);