Jack Phoenix has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/403872 )

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: I15f00e509f4c69028ef4c4846bf256dff39df890
---
M includes/Poll.class.php
M includes/PollNY.hooks.php
M includes/specials/SpecialCreatePoll.php
3 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PollNY 
refs/changes/72/403872/1

diff --git a/includes/Poll.class.php b/includes/Poll.class.php
index 77bbf76..c836277 100644
--- a/includes/Poll.class.php
+++ b/includes/Poll.class.php
@@ -330,7 +330,7 @@
 
                $polls = array();
                // Try cache
-               $key = wfMemcKey( 'polls', 'order', $order, 'count', $count );
+               $key = $wgMemc->makeKey( 'polls', 'order', $order, 'count', 
$count );
                $data = $wgMemc->get( $key );
                if( !empty( $data ) && is_array( $data ) ) {
                        wfDebug( "Got polls list ($count) ordered by {$order} 
from cache\n" );
diff --git a/includes/PollNY.hooks.php b/includes/PollNY.hooks.php
index 9b81f63..0879e3d 100644
--- a/includes/PollNY.hooks.php
+++ b/includes/PollNY.hooks.php
@@ -55,7 +55,7 @@
                        if ( $s !== false ) {
                                // Clear profile cache for user id that created 
poll
                                global $wgMemc;
-                               $key = wfMemcKey( 'user', 'profile', 'polls', 
$s->poll_user_id );
+                               $key = $wgMemc->makeKey( 'user', 'profile', 
'polls', $s->poll_user_id );
                                $wgMemc->delete( $key );
 
                                // Delete poll record
diff --git a/includes/specials/SpecialCreatePoll.php 
b/includes/specials/SpecialCreatePoll.php
index 02fed89..6ebb524 100644
--- a/includes/specials/SpecialCreatePoll.php
+++ b/includes/specials/SpecialCreatePoll.php
@@ -141,7 +141,7 @@
                        }
 
                        // Clear poll cache
-                       $key = wfMemcKey( 'user', 'profile', 'polls', 
$user->getID() );
+                       $key = $wgMemc->makeKey( 'user', 'profile', 'polls', 
$user->getId() );
                        $wgMemc->delete( $key );
 
                        // Redirect to new poll page

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I15f00e509f4c69028ef4c4846bf256dff39df890
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PollNY
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>

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

Reply via email to