summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-26 16:01:02 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-26 16:01:02 -0400
commit82084ab74c4050620d69a90cbacc33383a0b7e5f (patch)
tree5a62b659c5acf66152f2987787e6cf38afc5eca5 /classes/User.php
parent15c0fb7abd2a364886729d416231cac8ae0ef004 (diff)
move memcache connections to util.php
darcs-hash:20080926200102-5ed1f-debbc18981424d7724277ac82e5fbfd5e797090e.gz
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/User.php b/classes/User.php
index 94fcff9c8..de260035a 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -196,10 +196,9 @@ class User extends Memcached_DataObject
function noticesWithFriendsWindow() {
- $cache = new Memcache();
- $res = $cache->connect(common_config('memcached', 'server'), common_config('memcached', 'port'));
+ $cache = common_memcache();
- if (!$res) {
+ if (!$cache) {
return NULL;
}