aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm/acm_memcache.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-06-07 11:34:01 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-06-07 11:34:01 +0000
commita539fca62b10f53a5f5dadf07f9ab07340fdabf9 (patch)
tree28f4ab59d1564aefd30709748ce245f993be5f7c /phpBB/includes/acm/acm_memcache.php
parent711f482cb62070ab2340aa27c736a85cc6e8c518 (diff)
downloadforums-a539fca62b10f53a5f5dadf07f9ab07340fdabf9.tar
forums-a539fca62b10f53a5f5dadf07f9ab07340fdabf9.tar.gz
forums-a539fca62b10f53a5f5dadf07f9ab07340fdabf9.tar.bz2
forums-a539fca62b10f53a5f5dadf07f9ab07340fdabf9.tar.xz
forums-a539fca62b10f53a5f5dadf07f9ab07340fdabf9.zip
some corrections, only very minor things.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9554 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm/acm_memcache.php')
-rw-r--r--phpBB/includes/acm/acm_memcache.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/acm/acm_memcache.php b/phpBB/includes/acm/acm_memcache.php
index 5a34a2a51d..3077ee9615 100644
--- a/phpBB/includes/acm/acm_memcache.php
+++ b/phpBB/includes/acm/acm_memcache.php
@@ -32,6 +32,11 @@ if (!defined('PHPBB_ACM_MEMCACHE_COMPRESS'))
define('PHPBB_ACM_MEMCACHE_COMPRESS', false);
}
+if (!defined('PHPBB_ACM_MEMCACHE_HOST'))
+{
+ define('PHPBB_ACM_MEMCACHE_HOST', 'localhost');
+}
+
/**
* ACM for Memcached
* @package acm
@@ -48,11 +53,6 @@ class acm extends acm_memory
// Call the parent constructor
parent::acm_memory();
- if (!defined('PHPBB_ACM_MEMCACHE_HOST'))
- {
- trigger_error('Missing required constant [PHPBB_ACM_MEMCACHE_HOST] for memcache ACM module.', E_USER_ERROR);
- }
-
$this->memcache = new Memcache;
$this->memcache->connect(PHPBB_ACM_MEMCACHE_HOST, PHPBB_ACM_MEMCACHE_PORT);
$this->flags = (PHPBB_ACM_MEMCACHE_COMPRESS) ? MEMCACHE_COMPRESSED : 0;