2007-11-21 16:26:54 +00:00
|
|
|
<?php
|
2009-08-27 13:02:57 +00:00
|
|
|
/**
|
2007-11-21 16:26:54 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2009-08-27 13:02:57 +00:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
|
|
|
* @version 1.3
|
2007-11-21 16:26:54 +00:00
|
|
|
* @author Stephanie Amanda Stevens <phroziac@gmail.com>
|
2011-06-11 22:14:03 +00:00
|
|
|
* @author SPQRobin <robinp.1273@gmail.com>
|
2009-08-27 13:02:57 +00:00
|
|
|
* @copyright Copyright © 2005-2007 Stephanie Amanda Stevens
|
|
|
|
* @copyright Copyright © 2007 SPQRobin
|
2007-11-21 16:26:54 +00:00
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
|
2009-08-27 13:02:57 +00:00
|
|
|
* @link http://www.mediawiki.org/wiki/Extension:SpecialInterwiki Documentation
|
2007-11-21 16:26:54 +00:00
|
|
|
* Formatting improvements Stephen Kennedy, 2006.
|
|
|
|
*/
|
|
|
|
|
2009-08-27 13:02:57 +00:00
|
|
|
if( !defined( 'MEDIAWIKI' ) ){
|
|
|
|
die( "This is not a valid entry point.\n" );
|
|
|
|
}
|
2007-11-21 16:26:54 +00:00
|
|
|
|
2009-08-27 13:02:57 +00:00
|
|
|
// Extension credits for Special:Version
|
2007-11-21 16:26:54 +00:00
|
|
|
$wgExtensionCredits['specialpage'][] = array(
|
2009-08-27 13:02:57 +00:00
|
|
|
'path' => __FILE__,
|
|
|
|
'name' => 'SpecialInterwiki',
|
2011-02-05 23:12:43 +00:00
|
|
|
'author' => array( 'Stephanie Amanda Stevens', 'SPQRobin', '...' ),
|
2011-06-21 10:23:55 +00:00
|
|
|
'version' => '1.4.1',
|
2009-08-27 13:02:57 +00:00
|
|
|
'url' => 'http://www.mediawiki.org/wiki/Extension:SpecialInterwiki',
|
2008-02-11 13:29:16 +00:00
|
|
|
'descriptionmsg' => 'interwiki-desc',
|
2007-11-21 16:26:54 +00:00
|
|
|
);
|
|
|
|
|
2009-08-27 13:02:57 +00:00
|
|
|
// Set up the new special page
|
|
|
|
$dir = dirname( __FILE__ ) . '/';
|
2010-04-17 22:52:42 +00:00
|
|
|
$wgExtensionMessagesFiles['Interwiki'] = $dir . 'Interwiki.i18n.php';
|
|
|
|
$wgExtensionAliasesFiles['Interwiki'] = $dir . 'Interwiki.alias.php';
|
|
|
|
$wgAutoloadClasses['SpecialInterwiki'] = $dir . 'Interwiki_body.php';
|
2008-04-03 21:00:22 +00:00
|
|
|
$wgSpecialPages['Interwiki'] = 'SpecialInterwiki';
|
2009-02-10 00:40:30 +00:00
|
|
|
$wgSpecialPageGroups['Interwiki'] = 'wiki';
|
2008-04-03 21:00:22 +00:00
|
|
|
|
2009-08-27 13:02:57 +00:00
|
|
|
// New user right, required to modify the interwiki table through Special:Interwiki
|
2008-05-29 18:38:56 +00:00
|
|
|
$wgAvailableRights[] = 'interwiki';
|
|
|
|
|
2009-08-27 13:02:57 +00:00
|
|
|
// Set up the new log type - interwiki actions are logged to this new log
|
2008-04-03 21:00:22 +00:00
|
|
|
$wgLogTypes[] = 'interwiki';
|
|
|
|
$wgLogNames['interwiki'] = 'interwiki_logpagename';
|
|
|
|
$wgLogHeaders['interwiki'] = 'interwiki_logpagetext';
|
|
|
|
$wgLogActions['interwiki/interwiki'] = 'interwiki_logentry';
|
|
|
|
$wgLogActions['interwiki/iw_add'] = 'interwiki_log_added';
|
|
|
|
$wgLogActions['interwiki/iw_delete'] = 'interwiki_log_deleted';
|
2011-02-05 23:12:43 +00:00
|
|
|
$wgLogActions['interwiki/iw_edit'] = 'interwiki_log_edited';
|