diff options
Diffstat (limited to 'includes/WatchedItem.php')
-rw-r--r-- | includes/WatchedItem.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index 3885bb98..788774fb 100644 --- a/includes/WatchedItem.php +++ b/includes/WatchedItem.php @@ -35,8 +35,7 @@ class WatchedItem { * Returns the memcached key for this item */ function watchKey() { - global $wgDBname; - return "$wgDBname:watchlist:user:$this->id:page:$this->ns:$this->ti"; + return wfMemcKey( 'watchlist', 'user', $this->id, 'page', $this->ns, $this->ti ); } /** |