* @author SPQRobin * @copyright Copyright © 2005-2007 Stephanie Amanda Stevens * @copyright Copyright © 2007 SPQRobin * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later * @link http://www.mediawiki.org/wiki/Extension:SpecialInterwiki Documentation * Formatting improvements Stephen Kennedy, 2006. */ if( !defined( 'MEDIAWIKI' ) ){ die( "This is not a valid entry point.\n" ); } // Extension credits for Special:Version $wgExtensionCredits['specialpage'][] = array( 'path' => __FILE__, 'name' => 'SpecialInterwiki', 'author' => array( 'Stephanie Amanda Stevens', 'SPQRobin', 'others' ), 'version' => '1.3', 'url' => 'http://www.mediawiki.org/wiki/Extension:SpecialInterwiki', 'description' => 'Adds a [[Special:Interwiki|special page]] to view and edit the interwiki table', 'descriptionmsg' => 'interwiki-desc', ); // Set up the new special page $dir = dirname( __FILE__ ) . '/'; $wgExtensionMessagesFiles['Interwiki'] = $dir . 'SpecialInterwiki.i18n.php'; $wgExtensionAliasesFiles['Interwiki'] = $dir . 'SpecialInterwiki.alias.php'; $wgAutoloadClasses['SpecialInterwiki'] = $dir . 'SpecialInterwiki_body.php'; $wgSpecialPages['Interwiki'] = 'SpecialInterwiki'; $wgSpecialPageGroups['Interwiki'] = 'wiki'; // New user right, required to modify the interwiki table through Special:Interwiki $wgAvailableRights[] = 'interwiki'; // Set up the new log type - interwiki actions are logged to this new log $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'; $wgLogActions['interwiki/iw_edit'] = 'interwiki_log_edited';