aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggMemcache.php
diff options
context:
space:
mode:
authorJerome Bakker <jeabakker@coldtrick.com>2012-04-18 15:06:00 +0200
committerJerome Bakker <jeabakker@coldtrick.com>2012-04-18 15:06:00 +0200
commit7e59ef7adec3b716aabc9c61c485ceb17e5d1f68 (patch)
tree5afc8e63738c436c566803dfee0cec3dc04a5fc9 /engine/classes/ElggMemcache.php
parentf2a80038cddec5ed86b3dd9edb31cf07e3376de8 (diff)
downloadelgg-7e59ef7adec3b716aabc9c61c485ceb17e5d1f68.tar.gz
elgg-7e59ef7adec3b716aabc9c61c485ceb17e5d1f68.tar.bz2
fixes #3405 Memcache: fault in contructor can cause site to go into
English language
Diffstat (limited to 'engine/classes/ElggMemcache.php')
-rw-r--r--engine/classes/ElggMemcache.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/classes/ElggMemcache.php b/engine/classes/ElggMemcache.php
index f27b017d0..d9539b9cb 100644
--- a/engine/classes/ElggMemcache.php
+++ b/engine/classes/ElggMemcache.php
@@ -40,7 +40,7 @@ class ElggMemcache extends ElggSharedMemoryCache {
// Do we have memcache?
if (!class_exists('Memcache')) {
- throw new ConfigurationException(elgg_echo('memcache:notinstalled'));
+ throw new ConfigurationException('PHP memcache module not installed, you must install php5-memcache');
}
// Create memcache object
@@ -48,7 +48,7 @@ class ElggMemcache extends ElggSharedMemoryCache {
// Now add servers
if (!$CONFIG->memcache_servers) {
- throw new ConfigurationException(elgg_echo('memcache:noservers'));
+ throw new ConfigurationException('No memcache servers defined, please populate the $CONFIG->memcache_servers variable');
}
if (is_callable(array($this->memcache, 'addServer'))) {
@@ -85,7 +85,7 @@ class ElggMemcache extends ElggSharedMemoryCache {
// Get version
$this->version = $this->memcache->getVersion();
if (version_compare($this->version, ElggMemcache::$MINSERVERVERSION, '<')) {
- $msg = elgg_echo('memcache:versiontoolow',
+ $msg = vsprintf('Memcache needs at least version %s to run, you are running %s',
array(ElggMemcache::$MINSERVERVERSION,
$this->version
));