From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- extensions/InputBox/InputBox.php | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 extensions/InputBox/InputBox.php (limited to 'extensions/InputBox/InputBox.php') diff --git a/extensions/InputBox/InputBox.php b/extensions/InputBox/InputBox.php new file mode 100644 index 00000000..b54baa36 --- /dev/null +++ b/extensions/InputBox/InputBox.php @@ -0,0 +1,54 @@ + + * namespaces search improvements partially by + * Leonardo Pimenta + * Cleaned up by Trevor Parscal + * @copyright Public domain + * @license Public domain + * @version 0.1.4 + */ + +// Check environment +if ( !defined( 'MEDIAWIKI' ) ) { + echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" ); + die( -1 ); +} + +/* Configuration */ + +// Credits +$wgExtensionCredits['parserhook'][] = array( + 'path' => __FILE__, + 'name' => 'InputBox', + 'author' => array( 'Erik Moeller', 'Leonardo Pimenta', 'Rob Church', 'Trevor Parscal', 'DaSch' ), + 'version' => '0.1.4', + 'url' => 'https://www.mediawiki.org/wiki/Extension:InputBox', + 'description' => 'Allow inclusion of predefined HTML forms.', + 'descriptionmsg' => 'inputbox-desc', +); + +// Shortcut to this extension directory +$dir = dirname( __FILE__ ) . '/'; + +// Internationalization +$wgExtensionMessagesFiles['InputBox'] = $dir . 'InputBox.i18n.php'; + +// Register auto load for the special page class +$wgAutoloadClasses['InputBoxHooks'] = $dir . 'InputBox.hooks.php'; +$wgAutoloadClasses['InputBox'] = $dir . 'InputBox.classes.php'; + +// Register parser hook +$wgHooks['ParserFirstCallInit'][] = 'InputBoxHooks::register'; +$wgHooks['MediaWikiPerformAction'][] = 'InputBoxHooks::onMediaWikiPerformAction'; -- cgit v1.2.3-54-g00ecf