SamanthaNguyen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/334474 )

Change subject: v 1.1 - Make file purely a class instead of also a PHP entry 
point
......................................................................

v 1.1 - Make file purely a class instead of also a PHP entry point

Change-Id: I213fa6159cbb8246652d68eccce0caf8c7becdad
---
R MP3MediaHandler.class.php
M extension.json
2 files changed, 3 insertions(+), 15 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MP3MediaHandler 
refs/changes/74/334474/1

diff --git a/MP3MediaHandler.php b/MP3MediaHandler.class.php
similarity index 89%
rename from MP3MediaHandler.php
rename to MP3MediaHandler.class.php
index 2fc50b0..5ccf0dc 100644
--- a/MP3MediaHandler.php
+++ b/MP3MediaHandler.class.php
@@ -2,18 +2,6 @@
 
 # Stream MP3 using HTML5 <audio> tag
 
-$wgMediaHandlers['audio/mp3'] = 'MP3MediaHandler';
-$wgMediaHandlers['audio/mpeg'] = 'MP3MediaHandler';
-$wgFileExtensions[] = 'mp3';
-
-$wgExtensionCredits['parserhook'][] = array(
-       'name' => 'MP3MediaHandler',
-       'descriptionmsg' => 'mp3mediahandler-desc',
-       'author' => "Mark Clements (HappyDog)",
-       'version' => '1.0',
-       'url' => 'https://www.mediawiki.org/wiki/Extension:MP3MediaHandler'
-);
-
 class MP3MediaHandler extends MediaHandler {
 
        function validateParam( $name, $value ) { return true; }
diff --git a/extension.json b/extension.json
index a4bbb9e..7d49d23 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "MP3MediaHandler",
-       "version": "1.0",
+       "version": "1.1",
        "author": [
                "Mark Clements (HappyDog)",
                "Sylvain Machefert",
@@ -11,8 +11,8 @@
        "descriptionmsg": "mp3mediahandler-desc",
        "type": "parserhook",
        "AutoloadClasses": {
-               "MP3MediaHandler": "MP3MediaHandler.php",
-               "MP3OutputRenderer": "MP3MediaHandler.php"
+               "MP3MediaHandler": "MP3MediaHandler.class.php",
+               "MP3OutputRenderer": "MP3MediaHandler.class.php"
        },
        "MediaHandlers": {
                "audio/mp3": "MP3MediaHandler",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I213fa6159cbb8246652d68eccce0caf8c7becdad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MP3MediaHandler
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <samanthanguyen1...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to