From d09e3dddf480f954e90af900fa0f676032083f83 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Mon, 16 Mar 2009 22:36:26 +0000 Subject: [PATCH] don't show locales chooser when no additional packages were installed git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@416 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/view/inc_locales.php | 3 --- src/messenger/webim/view/install_index.php | 4 +++- src/messenger/webim/view/login.php | 4 +++- src/messenger/webim/view/menu.php | 6 ++++++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/messenger/webim/view/inc_locales.php b/src/messenger/webim/view/inc_locales.php index 80ff46d4..251bd837 100644 --- a/src/messenger/webim/view/inc_locales.php +++ b/src/messenger/webim/view/inc_locales.php @@ -8,7 +8,6 @@ function menuloc($id) { } function tpl_menu() { global $page, $webimroot, $errors, $current_locale; ?> -
  • - - \ No newline at end of file diff --git a/src/messenger/webim/view/install_index.php b/src/messenger/webim/view/install_index.php index eaf21d65..fa907ac2 100644 --- a/src/messenger/webim/view/install_index.php +++ b/src/messenger/webim/view/install_index.php @@ -12,7 +12,9 @@ * Evgeny Gryaznov - initial API and implementation */ -require_once('inc_locales.php'); +if(isset($page) && isset($page['localeLinks'])) { + require_once('inc_locales.php'); +} $page['title'] = getlocal("install.title"); $page['fixedwrap'] = true; diff --git a/src/messenger/webim/view/login.php b/src/messenger/webim/view/login.php index 4a54dbc1..b04c0d46 100644 --- a/src/messenger/webim/view/login.php +++ b/src/messenger/webim/view/login.php @@ -12,7 +12,9 @@ * Evgeny Gryaznov - initial API and implementation */ -require_once('inc_locales.php'); +if(isset($page) && isset($page['localeLinks'])) { + require_once('inc_locales.php'); +} $page['title'] = getlocal("page_login.title"); $page['headertitle'] = getlocal("app.title"); $page['show_small_login'] = true; diff --git a/src/messenger/webim/view/menu.php b/src/messenger/webim/view/menu.php index adc2b6de..f9079046 100644 --- a/src/messenger/webim/view/menu.php +++ b/src/messenger/webim/view/menu.php @@ -17,10 +17,12 @@ $page['title'] = getlocal("topMenu.admin"); $page['menuid'] = "main"; function tpl_header() { global $page, $webimroot; + if(isset($page) && isset($page['localeLinks'])) { ?> + @@ -110,6 +113,7 @@ if( $page['showadmin'] ) { ?> + @@ -121,6 +125,7 @@ if( $page['showadmin'] ) { ?> +
    X

    @@ -132,6 +137,7 @@ if( $page['showadmin'] ) { ?>

    +