~ubuntu-branches/ubuntu/saucy/mediawiki-extensions/saucy

« back to all changes in this revision

Viewing changes to dist/mediawiki-extensions-base/usr/share/mediawiki-extensions/base/InputBox/InputBox.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-05-04 15:13:35 UTC
  • mfrom: (0.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100504151335-54qeucg3ec108q28
Tags: 2.2
* Added Replaces:/Conflicts: to allow a proper upgrade.
Closes: #580066
* Fixed package descriptions.
Closes: #579667
* Patched mediawiki-extensions-fckeditor to make it work with
  php 5.3. The fix may not be perfect but at least it work.
  Not closing the bug (#579822) for now..

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * InputBox extension
 
4
 *
 
5
 * @file
 
6
 * @ingroup Extensions
 
7
 *
 
8
 * This file contains the main include file for the Inputbox extension of
 
9
 * MediaWiki.
 
10
 *
 
11
 * Usage: Add the following line in LocalSettings.php:
 
12
 * require_once( "$IP/extensions/InputBox/InputBox.php" );
 
13
 *
 
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
 
20
 * @version 0.1.1
 
21
 */
 
22
 
 
23
// Check environment
 
24
if ( !defined( 'MEDIAWIKI' ) ) {
 
25
        echo( "This is an extension to the MediaWiki package and cannot be run standalone.\n" );
 
26
        die( -1 );
 
27
}
 
28
 
 
29
/* Configuration */
 
30
 
 
31
// Credits
 
32
$wgExtensionCredits['parserhook'][] = array(
 
33
        'name'           => 'InputBox',
 
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',
 
40
);
 
41
 
 
42
// Shortcut to this extension directory
 
43
$dir = dirname( __FILE__ ) . '/';
 
44
 
 
45
// Internationalization
 
46
$wgExtensionMessagesFiles['InputBox'] = $dir . 'InputBox.i18n.php';
 
47
 
 
48
// Register auto load for the special page class
 
49
$wgAutoloadClasses['InputBoxHooks'] = $dir . 'InputBox.hooks.php';
 
50
$wgAutoloadClasses['InputBox'] = $dir . 'InputBox.classes.php';
 
51
 
 
52
// Register parser hook
 
53
if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
 
54
        // Modern
 
55
        $wgHooks['ParserFirstCallInit'][] = 'InputBoxHooks::register';
 
56
} else {
 
57
        // Legacy
 
58
        $wgExtensionFunctions[] = array( 'InputBoxHooks', 'register' );
 
59
}