jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/403858 )

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: I6bf230c740a887f4eb629661cfee8c09e48004d5
---
M includes/api/ApiQuizGame.php
M includes/specials/SpecialQuizGameHome.php
2 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  SamanthaNguyen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/api/ApiQuizGame.php b/includes/api/ApiQuizGame.php
index ca7044f..ae11b34 100644
--- a/includes/api/ApiQuizGame.php
+++ b/includes/api/ApiQuizGame.php
@@ -199,7 +199,7 @@
                                        }
 
                                        global $wgMemc;
-                                       $key = wfMemcKey( 'user', 'stats', 
$row->a_user_id );
+                                       $key = $wgMemc->makeKey( 'user', 
'stats', $row->a_user_id );
                                        $wgMemc->delete( $key );
                                }
 
diff --git a/includes/specials/SpecialQuizGameHome.php 
b/includes/specials/SpecialQuizGameHome.php
index 616230d..bc15f91 100644
--- a/includes/specials/SpecialQuizGameHome.php
+++ b/includes/specials/SpecialQuizGameHome.php
@@ -881,7 +881,7 @@
                if( $user->getName() != $question['user_name'] ) {
                        // check to see if the user already had viewed this 
question
                        global $wgMemc;
-                       $key = wfMemcKey( 'quizgame-user-view', $user->getID(), 
$question['id'] );
+                       $key = $wgMemc->makeKey( 'quizgame-user-view', 
$user->getID(), $question['id'] );
                        $data = $wgMemc->get( $key );
                        if( $data > 0 ) {
                                $timestampedViewed = $data;
@@ -1325,7 +1325,7 @@
                }
 
                // Delete memcached key
-               $key = wfMemcKey( 'user', 'profile', 'quiz', $user->getID() );
+               $key = $wgMemc->makeKey( 'user', 'profile', 'quiz', 
$user->getID() );
                $wgMemc->delete( $key );
 
                // Redirect the user

-- 
To view, visit https://gerrit.wikimedia.org/r/403858
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6bf230c740a887f4eb629661cfee8c09e48004d5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/QuizGame
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
Gerrit-Reviewer: SamanthaNguyen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to