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;
?>
-
@@ -17,8 +16,6 @@ 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'] ) { ?>
+
+
|