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

Change subject: v 0.1.1 - Remove deprecated PHP entry point
......................................................................

v 0.1.1 - Remove deprecated PHP entry point

Change-Id: I2ba208a57794096897bd26a08495f452fff6ee79
---
D MolHandler.php
M extension.json
2 files changed, 1 insertion(+), 78 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MolHandler 
refs/changes/78/334478/1

diff --git a/MolHandler.php b/MolHandler.php
deleted file mode 100644
index 745c8ff..0000000
--- a/MolHandler.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * MolHandler extension
- *
- * @file
- * @ingroup Extensions
- *
- * Stores the setup instructions for MolHandler.
- *
- * Usage: Include the following line in your LocalSettings.php
- * require_once( "$IP/extensions/MolHandler/MolHandler.php" );
- * The indigo-depict tool must be present.
- *
- * @author Rainer Rillke <[lastname]@wikipedia.de>
- * @license GPL.v2 or later
- * @version 0.1
- */
-
-# Not a valid entry point, skip unless MEDIAWIKI is defined
-if ( !defined( 'MEDIAWIKI' ) ) {
-       echo 'MolHandler is a MediaWiki extension.';
-       exit( 1 );
-}
-
-// Credits
-$wgExtensionCredits['media'][] = [
-       'path' => __FILE__,
-       'name' => 'Mol Handler',
-       'author' => [
-               'Rainer Rillke',
-       ],
-       'version' => '0.1.0',
-       'descriptionmsg' => 'molhandler-desc',
-       'url' => 'https://www.mediawiki.org/wiki/Extension:MolHandler',
-       'license-name' => 'GPL-2.0+',
-];
-
-/* Configuration */
-$wgMolHandlerDir = __DIR__ . '/';
-$wgMessagesDirs['MolHandler'] = $wgMolHandlerDir . 'i18n';
-
-# Converter. Note that babel is not yet able to convert reactions
-$wgMolConverterPath = '/usr/bin';
-$wgMolConvertCommands = [
-       'babel' => [
-               'command' => '$path/babel -i$format $input $output',
-               'supportedFormats' => [ 'mol' ],
-               'memory' => 204800
-       ],
-       'indigo' => [
-               'command' => '$path/indigo-depict $input $output',
-               'supportedFormats' => [ 'mol', 'rxn' ],
-               // 200 MiB - indigo-depict required about 40 MiB with all 
libraries in
-               // tests but sometimes seems to need much more; no errors with 
200 MiB
-               // on the test wiki so far; See Bug 67074.
-               'memory' => 204800
-       ],
-];
-$wgMolConverter = 'indigo';
-
-$wgMediaHandlers['chemical/x-mdl-molfile'] = 'MolMediaHandler';
-$wgMediaHandlers['chemical/x-mdl-rxnfile'] = 'RxnMediaHandler';
-
-# Register modules
-$wgAutoloadClasses['MolHandlerHooks'] = $wgMolHandlerDir . 
'MolHandlerHooks.php';
-$wgAutoloadClasses['MolHandlerMime']  = $wgMolHandlerDir . 
'MolHandler.mime.php';
-$wgAutoloadClasses['MolHandler']      = $wgMolHandlerDir . 
'MolHandler_body.php';
-$wgAutoloadClasses['MolMediaHandler'] = $wgMolHandlerDir . 
'MolMediaHandler.php';
-$wgAutoloadClasses['RxnMediaHandler'] = $wgMolHandlerDir . 
'RxnMediaHandler.php';
-
-# Hook-up MIME type detection
-$wgHooks['MimeMagicInit'][]                 = 
'MolHandlerMime::onMimeMagicInit';
-$wgHooks['MimeMagicImproveFromExtension'][] = 
'MolHandlerMime::onMimeMagicImproveFromExtension';
-$wgHooks['MimeMagicGuessFromContent'][]     = 
'MolHandlerMime::onMimeMagicGuessFromContent';
-
-# Hook-up tests
-$wgHooks['UnitTestsList'][] = 'MolHandlerHooks::onUnitTestsList';
diff --git a/extension.json b/extension.json
index 4f7d582..1516c6b 100644
--- a/extension.json
+++ b/extension.json
@@ -4,7 +4,7 @@
                "Rainer Rillke"
        ],
        "url": "https://www.mediawiki.org/wiki/Extension:MolHandler";,
-       "version": "0.1.0",
+       "version": "0.1.1",
        "descriptionmsg": "molhandler-desc",
        "license-name": "GPL-2.0+",
        "requires": {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ba208a57794096897bd26a08495f452fff6ee79
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MolHandler
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <[email protected]>

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

Reply via email to