diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php
index 50e0f581..fc813b73 100644
--- a/src/messenger/webim/libs/common.php
+++ b/src/messenger/webim/libs/common.php
@@ -520,6 +520,7 @@ $settings = array(
'enablessl' => '0',
'usercanchangename' => '1',
'enabledepartments' => '0',
+ 'enablestatistics' => '1',
);
$settingsloaded = false;
$settings_in_db = array();
diff --git a/src/messenger/webim/libs/operator.php b/src/messenger/webim/libs/operator.php
index bd5ba6df..afb95963 100644
--- a/src/messenger/webim/libs/operator.php
+++ b/src/messenger/webim/libs/operator.php
@@ -221,7 +221,7 @@ function prepare_menu($operator,$hasright=true) {
loadsettings();
$page['showban'] = $settings['enableban'] == "1";
$page['showdep'] = $settings['enabledepartments'] == "1";
- $page['showstat'] = true; //$settings['enablestatistics'] == "1";
+ $page['showstat'] = $settings['enablestatistics'] == "1";
$page['showadmin'] = is_capable($can_administrate, $operator);
}
}
diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties
index 6e4dac32..5dee9356 100644
--- a/src/messenger/webim/locales/en/properties
+++ b/src/messenger/webim/locales/en/properties
@@ -322,8 +322,10 @@ settings.enableban.description=Using it you can block attacks from specific IPs
settings.enableban=Enable feature "Malicious Visitors"
settings.enabledepartments.description=Use it to have separate queues for different questions.
settings.enabledepartments=Enable "Departments"
-settings.enablessl.description=Please, note that your web server should be
configured to support https requests.
+settings.enablessl.description=Please, note that your web server should be configured to support https requests.
settings.enablessl=Allow secure connections (SSL)
+settings.enablestatistics.description=Adds page with messenger usage reports.
+settings.enablestatistics=Enable "Statistics"
settings.geolink.description=Each IP becomes a link opening in new window. {ip} is substituted with a real ip.
settings.geolink=Link to an external geolocation service
settings.geolinkparams.description=Window size and toolbars hiding
diff --git a/src/messenger/webim/operator/features.php b/src/messenger/webim/operator/features.php
index a79caad6..c2b23ec9 100644
--- a/src/messenger/webim/operator/features.php
+++ b/src/messenger/webim/operator/features.php
@@ -21,7 +21,7 @@ $operator = check_login();
$page = array('agentId' => '');
$errors = array();
-$options = array('enableban', 'usercanchangename', 'enablessl', 'enabledepartments');
+$options = array('enableban', 'usercanchangename', 'enablessl', 'enabledepartments', 'enablestatistics');
loadsettings();
$params = array();
diff --git a/src/messenger/webim/view/features.php b/src/messenger/webim/view/features.php
index 1bc95145..ed7e3d9f 100644
--- a/src/messenger/webim/view/features.php
+++ b/src/messenger/webim/view/features.php
@@ -52,15 +52,6 @@ require_once('inc_errors.php');