jenkins-bot has submitted this change and it was merged.

Change subject: Add extension.json
......................................................................


Add extension.json

Change-Id: Ifa091a90f374e097b0b15d741aa954b9a41c3d45
---
M LICENSE
M Screenplay.class.php
M Screenplay.php
A extension.json
M resources/ext.screenplay.css
5 files changed, 49 insertions(+), 22 deletions(-)

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



diff --git a/LICENSE b/LICENSE
old mode 100755
new mode 100644
diff --git a/Screenplay.class.php b/Screenplay.class.php
old mode 100755
new mode 100644
diff --git a/Screenplay.php b/Screenplay.php
old mode 100755
new mode 100644
index 254bc86..c87d4a7
--- a/Screenplay.php
+++ b/Screenplay.php
@@ -1,23 +1,14 @@
 <?php
-
-$wgExtensionCredits['parserhook'][] = array(
-       'path' => __FILE__,
-       'name' => 'Screenplay',
-       'author' => array( 'Bartosz Dziewoński', 'Calimonius the Estrange' ),
-       'url' => 'https://www.mediawiki.org/wiki/Extension:Screenplay',
-       'descriptionmsg' => 'screenplay-desc',
-       'license-name' => 'MIT',
-       'version' => .3,
-);
-
-$wgAutoloadClasses['Screenplay'] = __DIR__ . '/Screenplay.class.php';
-$wgExtensionMessagesFiles['Screenplay'] = __DIR__ . '/Screenplay.i18n.php';
-$wgMessagesDirs['Screenplay'] = __DIR__ . '/i18n';
-$wgHooks['ParserFirstCallInit'][] = 'Screenplay::init';
-
-$wgResourceModules['ext.screenplay'] = array(
-       'styles' => 'ext.screenplay.css',
-       'position' => 'top',
-       'localBasePath' => __DIR__ . '/resources',
-       'remoteExtPath' => 'Screenplay/resources',
-);
+if ( function_exists( 'wfLoadExtension' ) ) {
+       wfLoadExtension( 'Screenplay' );
+       // Keep i18n globals so mergeMessageFileList.php doesn't break
+       $wgMessagesDirs['Screenplay'] = __DIR__ . '/i18n';
+       $wgExtensionMessagesFiles['ScreenplayAlias'] = __DIR__ . 
'/Screenplay.alias.php';
+       wfWarn(
+               'Deprecated PHP entry point used for Screenplay extension. 
Please use wfLoadExtension instead, ' .
+               'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+       );
+       return;
+} else {
+       die( 'This version of the Screenplay extension requires MediaWiki 
1.25+' );
+}
diff --git a/extension.json b/extension.json
new file mode 100644
index 0000000..359642b
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,36 @@
+{
+       "name": "Screenplay",
+       "version": 0.4,
+       "author": [
+               "Bartosz Dziewoński",
+               "Calimonius the Estrange"
+       ],
+       "url": "https://www.mediawiki.org/wiki/Extension:Screenplay";,
+       "descriptionmsg": "screenplay-desc",
+       "license-name": "MIT",
+       "type": "parserhook",
+       "MessagesDirs": {
+               "Screenplay": [
+                       "i18n"
+               ]
+       },
+       "AutoloadClasses": {
+               "Screenplay": "Screenplay.class.php"
+       },
+       "ResourceModules": {
+               "ext.screenplay": {
+                       "styles": "ext.screenplay.css",
+                       "position": "top"
+               }
+       },
+       "ResourceFileModulePaths": {
+               "localBasePath": "resources",
+               "remoteExtPath": "Screenplay/resources"
+       },
+       "Hooks": {
+               "ParserFirstCallInit": [
+                       "Screenplay::init"
+               ]
+       },
+       "manifest_version": 1
+}
diff --git a/resources/ext.screenplay.css b/resources/ext.screenplay.css
old mode 100755
new mode 100644

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifa091a90f374e097b0b15d741aa954b9a41c3d45
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Screenplay
Gerrit-Branch: master
Gerrit-Owner: Isarra <[email protected]>
Gerrit-Reviewer: Isarra <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to