From: Roan Kattouw Date: Thu, 16 Apr 2009 20:16:21 +0000 (+0000) Subject: (bug 18487) Another fix for r48379: move up getMemcKey() as well X-Git-Tag: 1.31.0-rc.0~42120 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=a25b78c785e576a8e224ee4ddf8d1bc53704477d;p=lhc%2Fweb%2Fwiklou.git (bug 18487) Another fix for r48379: move up getMemcKey() as well --- diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 22e41d1a33..aaf548677e 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -599,4 +599,9 @@ abstract class FileRepo { function getMasterDB() { return wfGetDB( DB_MASTER ); } + + function getMemcKey( $key ) { + return wfWikiID( $this->getSlaveDB() ) . ":{$key}"; + } + }