summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatch2011-09-16 08:17:58 (GMT)
committercatch2011-09-16 08:17:58 (GMT)
commita0b7cb6ec6bae061789febb7abbabdaa11263ad1 (patch)
treedf2bf63bce061437619ef9f572e6197a5f42272e
parent1502097b651d3340c13739502fe48b88f75185b0 (diff)
Issue #1233634 by c960657: require dmemcache.inc from memcache-lock.inc
-rw-r--r--memcache-lock.inc2
-rw-r--r--memcache-session.inc4
-rw-r--r--memcache.inc2
3 files changed, 5 insertions, 3 deletions
diff --git a/memcache-lock.inc b/memcache-lock.inc
index 8583197..0d78cb4 100644
--- a/memcache-lock.inc
+++ b/memcache-lock.inc
@@ -6,6 +6,8 @@
* See includes/lock.inc for documenation
*/
+require_once dirname(__FILE__) . '/dmemcache.inc';
+
/**
* Initialize the locking system.
*/
diff --git a/memcache-session.inc b/memcache-session.inc
index a0137ae..8f5c86a 100644
--- a/memcache-session.inc
+++ b/memcache-session.inc
@@ -1,7 +1,5 @@
<?php
-require_once dirname(__FILE__) . '/dmemcache.inc';
-
/**
* @file
* User session handling functions.
@@ -9,6 +7,8 @@ require_once dirname(__FILE__) . '/dmemcache.inc';
* An alternative to includes/session.inc.
*/
+require_once dirname(__FILE__) . '/dmemcache.inc';
+
/**
* Implement hook_user() using a required module's namespace since memcache is
* not a module and thus can't implement hooks directly.
diff --git a/memcache.inc b/memcache.inc
index be479d3..cd938d5 100644
--- a/memcache.inc
+++ b/memcache.inc
@@ -1,6 +1,6 @@
<?php
-require_once 'dmemcache.inc';
+require_once dirname(__FILE__) . '/dmemcache.inc';
/**
* Defines the period after which wildcard clears are not considered valid.