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

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: I9e0f85e34e48fb98938ea9e26b91e30357f58829
---
M includes/providers/BlipTVVideo.php
M includes/providers/HuluVideo.php
M includes/providers/ViddlerVideo.php
3 files changed, 3 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Video 
refs/changes/67/403867/1

diff --git a/includes/providers/BlipTVVideo.php 
b/includes/providers/BlipTVVideo.php
index b82f0dc..4ff401f 100644
--- a/includes/providers/BlipTVVideo.php
+++ b/includes/providers/BlipTVVideo.php
@@ -23,7 +23,7 @@
 
                $videoId = $matches[1];
 
-               $cacheKey = wfMemcKey( 'video', 'bliptv', $videoId );
+               $cacheKey = $wgMemc->makeKey( 'video', 'bliptv', $videoId );
                $cachedEmbedId = $wgMemc->get( $cacheKey );
 
                if ( $cachedEmbedId !== false ) {
diff --git a/includes/providers/HuluVideo.php b/includes/providers/HuluVideo.php
index a5fdcdd..899e728 100644
--- a/includes/providers/HuluVideo.php
+++ b/includes/providers/HuluVideo.php
@@ -24,7 +24,7 @@
 
                $videoId = $matches['id'];
 
-               $cacheKey = wfMemcKey( 'video', 'hulu', $videoId );
+               $cacheKey = $wgMemc->makeKey( 'video', 'hulu', $videoId );
                $cachedEmbedId = $wgMemc->get( $cacheKey );
 
                if ( $cachedEmbedId !== false ) {
diff --git a/includes/providers/ViddlerVideo.php 
b/includes/providers/ViddlerVideo.php
index 56f6db4..1152d84 100644
--- a/includes/providers/ViddlerVideo.php
+++ b/includes/providers/ViddlerVideo.php
@@ -12,11 +12,10 @@
                return 437 / 288;
        }
 
-
        protected function extractVideoId( $url ) {
                global $wgMemc;
 
-               $cacheKey = wfMemcKey( 'video', 'viddler', sha1( $url ) );
+               $cacheKey = $wgMemc->makeKey( 'video', 'viddler', sha1( $url ) 
);
                $cachedEmbedId = $wgMemc->get( $cacheKey );
 
                if ( $cachedEmbedId !== false ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9e0f85e34e48fb98938ea9e26b91e30357f58829
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Video
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