Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/76312
Change subject: Remove call to deprecated MWInit::methodExists with
method_exists
......................................................................
Remove call to deprecated MWInit::methodExists with method_exists
Change-Id: Idd5a989475c5c66a19e00d2f64737f041f1bfe66
MWInit::methodExists was deprecated in 1.22.
---
M TimedMediaThumbnail.php
M TranscodeStatusTable.php
M WebVideoTranscode/WebVideoTranscode.php
3 files changed, 3 insertions(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TimedMediaHandler
refs/changes/12/76312/1
diff --git a/TimedMediaThumbnail.php b/TimedMediaThumbnail.php
index 1929bc2..8a80bd8 100644
--- a/TimedMediaThumbnail.php
+++ b/TimedMediaThumbnail.php
@@ -108,7 +108,7 @@
//try to get temorary local url to file
$backend = $options['file']->getRepo()->getBackend();
// getFileHttpUrl was only added in mw 1.21, dont fail if it
does not exist
- if ( MWInit::methodExists( $backend, 'getFileHttpUrl' ) ) {
+ if ( method_exists( $backend, 'getFileHttpUrl' ) ) {
$src = $backend->getFileHttpUrl( array(
'src' => $options['file']->getPath()
) );
diff --git a/TranscodeStatusTable.php b/TranscodeStatusTable.php
index 429b662..c6862eb 100644
--- a/TranscodeStatusTable.php
+++ b/TranscodeStatusTable.php
@@ -89,7 +89,7 @@
*/
public static function getSourceUrl( $file, $transcodeKey ){
$thumbName = $file->thumbName( array() );
- if ( MWInit::methodExists( $file, 'getTranscodedUrl' ) ) {
+ if ( method_exists( $file, 'getTranscodedUrl' ) ) {
$thumbUrl = $file->getTranscodedUrl( $thumbName );
} else {
$thumbUrl = $file->getThumbUrl( $thumbName );
diff --git a/WebVideoTranscode/WebVideoTranscode.php
b/WebVideoTranscode/WebVideoTranscode.php
index 3f4d078..7316b1c 100644
--- a/WebVideoTranscode/WebVideoTranscode.php
+++ b/WebVideoTranscode/WebVideoTranscode.php
@@ -255,7 +255,7 @@
* @return string
*/
static public function getDerivativeFilePath( &$file, $transcodeKey){
- if ( MWInit::methodExists( $file, 'getTranscodedPath' ) ) {
+ if ( method_exists( $file, 'getTranscodedPath' ) ) {
return $file->getTranscodedPath( $file->getName() . '.'
. $transcodeKey );
} else {
return $file->getThumbPath( $file->getName() . '.' .
$transcodeKey );
--
To view, visit https://gerrit.wikimedia.org/r/76312
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idd5a989475c5c66a19e00d2f64737f041f1bfe66
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TimedMediaHandler
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits