jenkins-bot has submitted this change and it was merged. Change subject: InsertCategory: using extension.json ......................................................................
InsertCategory: using extension.json Patch Set 2: whitespace, authors, license, resource path Change-Id: Iaee44caff4165b191d215e74ee219ad88e0d4ce7 --- M InsertCategory/InsertCategory.class.php M InsertCategory/InsertCategory.setup.php A InsertCategory/extension.json 3 files changed, 53 insertions(+), 55 deletions(-) Approvals: Mglaser: Looks good to me, approved jenkins-bot: Verified diff --git a/InsertCategory/InsertCategory.class.php b/InsertCategory/InsertCategory.class.php index 19f067a..4749112 100644 --- a/InsertCategory/InsertCategory.class.php +++ b/InsertCategory/InsertCategory.class.php @@ -41,28 +41,6 @@ * @subpackage InsertCategory */ class InsertCategory extends BsExtensionMW { - - /** - * Constructor of InsertCategory - */ - public function __construct() { - wfProfileIn( 'BS::' . __METHOD__ ); - $this->mExtensionFile = __FILE__; - $this->mExtensionType = EXTTYPE::VARIABLE; - $this->mInfo = array( - EXTINFO::NAME => 'InsertCategory', - EXTINFO::DESCRIPTION => 'bs-insertcategory-desc', - EXTINFO::AUTHOR => 'Markus Glaser, Sebastian Ulbricht, Stefan Widmann', - EXTINFO::VERSION => 'default', - EXTINFO::STATUS => 'default', - EXTINFO::PACKAGE => 'default', - EXTINFO::URL => 'https://help.bluespice.com/index.php/InsertCategory', - EXTINFO::DEPS => array( 'bluespice' => '2.22.0' ) - ); - $this->mExtensionKey = 'MW::InsertCategory'; - wfProfileOut( 'BS::' . __METHOD__ ); - } - /** * Initialise the InsertCategory extension */ diff --git a/InsertCategory/InsertCategory.setup.php b/InsertCategory/InsertCategory.setup.php index ec7f870..17e6d3f 100644 --- a/InsertCategory/InsertCategory.setup.php +++ b/InsertCategory/InsertCategory.setup.php @@ -1,34 +1,2 @@ <?php - -BsExtensionManager::registerExtension('InsertCategory', BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE); - -$wgAutoloadClasses['InsertCategory'] = __DIR__ . '/InsertCategory.class.php'; - -$wgMessagesDirs['InsertCategory'] = __DIR__ . '/i18n'; - -$aResourceModuleTemplate = array( - 'localBasePath' => $IP . '/extensions/BlueSpiceExtensions/InsertCategory/resources', - 'remoteExtPath' => 'BlueSpiceExtensions/InsertCategory/resources' -); - -$wgResourceModules['ext.bluespice.insertcategory'] = array( - 'scripts' => 'bluespice.insertCategory.js', - 'messages' => array( - 'bs-insertcategory-title', - 'bs-insertcategory-cat-label', - 'bs-insertcategory-success', - 'bs-insertcategory-failure', - 'bs-insertcategory-hint', - 'bs-insertcategory-panel-title' - ), - 'dependencies' => array( - 'ext.bluespice.extjs' - ) -) + $aResourceModuleTemplate; - -$wgResourceModules['ext.bluespice.insertcategory.styles'] = array( - 'styles' => 'bluespice.insertCategory.css', - 'position' => 'top' -) + $aResourceModuleTemplate; - -unset( $aResourceModuleTemplate ); \ No newline at end of file +wfLoadExtension( 'BlueSpiceExtensions/InsertCategory' ); \ No newline at end of file diff --git a/InsertCategory/extension.json b/InsertCategory/extension.json new file mode 100644 index 0000000..9439e20 --- /dev/null +++ b/InsertCategory/extension.json @@ -0,0 +1,52 @@ +{ + "name": "InsertCategory", + "version": "2.27.0", + "url": "https://help.bluespice.com/index.php/InsertCategory", + "author": [ + "Markus Glaser", + "Sebastian Ulbricht", + "Stefan Widmann" + ], + "descriptionmsg": "bs-insertcategory-desc", + "type": "bluespice", + "license-name": "GPL-2.0+", + "bsgExtensions": { + "InsertCategory": { + "className": "InsertCategory", + "extPath": "/BlueSpiceExtensions/InsertCategory" + } + }, + "MessagesDirs": { + "InsertCategory": [ + "i18n" + ] + }, + "AutoloadClasses": { + "InsertCategory": "InsertCategory.class.php" + }, + "ResourceModules": { + "ext.bluespice.insertcategory": { + "scripts": "bluespice.insertCategory.js", + "messages": [ + "bs-insertcategory-title", + "bs-insertcategory-cat-label", + "bs-insertcategory-success", + "bs-insertcategory-failure", + "bs-insertcategory-hint", + "bs-insertcategory-panel-title" + ], + "dependencies": [ + "ext.bluespice.extjs" + ] + }, + "ext.bluespice.insertcategory.styles": { + "styles": "bluespice.insertCategory.css", + "position": "top" + } + }, + "ResourceFileModulePaths": { + "localBasePath": "resources", + "remoteExtPath": "BlueSpiceExtensions/InsertCategory/resources" + }, + "manifest_version": 1 +} -- To view, visit https://gerrit.wikimedia.org/r/305220 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iaee44caff4165b191d215e74ee219ad88e0d4ce7 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Gerharddiller85 <gerharddil...@icloud.com> Gerrit-Reviewer: Dvogel hallowelt <daniel.vo...@hallowelt.com> Gerrit-Reviewer: Ljonka <l.verhovs...@gmail.com> Gerrit-Reviewer: Mglaser <gla...@hallowelt.biz> Gerrit-Reviewer: Pwirth <wi...@hallowelt.biz> Gerrit-Reviewer: Robert Vogel <vo...@hallowelt.biz> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits