8
* This file contains the main include file for the Inputbox extension of
11
* Usage: Add the following line in LocalSettings.php:
12
* require_once( "$IP/extensions/InputBox/InputBox.php" );
14
* @author Erik Moeller <moeller@scireview.de>
15
* namespaces search improvements partially by
16
* Leonardo Pimenta <leo.lns@gmail.com>
17
* Cleaned up by Trevor Parscal <tparscal@wikimedia.org>
18
* @copyright Public domain
19
* @license Public domain
24
if ( !defined( 'MEDIAWIKI' ) ) {
25
echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" );
32
$wgExtensionCredits['parserhook'][] = array(
34
'author' => array( 'Erik Moeller', 'Leonardo Pimenta', 'Rob Church', 'Trevor Parscal' ),
35
'svn-date' => '$LastChangedDate: 2008-10-29 18:59:03 -0500 (mer. 29 oct. 2008) $',
36
'svn-revision' => '$LastChangedRevision: 42791 $',
37
'url' => 'http://www.mediawiki.org/wiki/Extension:InputBox',
38
'description' => 'Allow inclusion of predefined HTML forms.',
39
'descriptionmsg' => 'inputbox-desc',
42
// Shortcut to this extension directory
43
$dir = dirname( __FILE__ ) . '/';
45
// Internationalization
46
$wgExtensionMessagesFiles['InputBox'] = $dir . 'InputBox.i18n.php';
48
// Register auto load for the special page class
49
$wgAutoloadClasses['InputBoxHooks'] = $dir . 'InputBox.hooks.php';
50
$wgAutoloadClasses['InputBox'] = $dir . 'InputBox.classes.php';
52
// Register parser hook
53
if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
55
$wgHooks['ParserFirstCallInit'][] = 'InputBoxHooks::register';
58
$wgExtensionFunctions[] = array( 'InputBoxHooks', 'register' );