Jack Phoenix has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/403873 )
Change subject: wfMemcKey (deprecated in MW 1.30) -> makeKey() on a BagOStuff
instance
......................................................................
wfMemcKey (deprecated in MW 1.30) -> makeKey() on a BagOStuff instance
Change-Id: Ic46307e405b72087139c8eaf47f1b33e5474181e
---
M EditcountAdditions.class.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EditcountAdditions
refs/changes/73/403873/1
diff --git a/EditcountAdditions.class.php b/EditcountAdditions.class.php
index ad72985..77c196c 100644
--- a/EditcountAdditions.class.php
+++ b/EditcountAdditions.class.php
@@ -37,7 +37,7 @@
global $wgMemc;
$uid = $user->getId();
- $key = wfMemcKey( 'editcount', 'accurate', $uid );
+ $key = $wgMemc->makeKey( 'editcount', 'accurate', $uid );
$editCount = $wgMemc->get( $key );
if ( $editCount === false ) {
@@ -67,7 +67,7 @@
// No need to run this code for anons since anons don't have
preferences
// nor does Special:Editcount work for them
if ( $user && $user->isLoggedIn() ) {
- $key = wfMemcKey( 'editcount', 'accurate',
$user->getId() );
+ $key = $wgMemc->makeKey( 'editcount', 'accurate',
$user->getId() );
$wgMemc->incr( $key );
}
return true;
--
To view, visit https://gerrit.wikimedia.org/r/403873
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic46307e405b72087139c8eaf47f1b33e5474181e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EditcountAdditions
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits