http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65079
Revision: 65079 Author: siebrand Date: 2010-04-15 18:57:21 +0000 (Thu, 15 Apr 2010) Log Message: ----------- Rename 'setup' file to have the same name as the parent directory. Update Configure accordingly. Modified Paths: -------------- trunk/extensions/ChangeAuthor/LEESMIJ trunk/extensions/ChangeAuthor/README trunk/extensions/Configure/settings/Settings-ext.txt Added Paths: ----------- trunk/extensions/ChangeAuthor/ChangeAuthor.php Removed Paths: ------------- trunk/extensions/ChangeAuthor/ChangeAuthor.setup.php Copied: trunk/extensions/ChangeAuthor/ChangeAuthor.php (from rev 65072, trunk/extensions/ChangeAuthor/ChangeAuthor.setup.php) =================================================================== --- trunk/extensions/ChangeAuthor/ChangeAuthor.php (rev 0) +++ trunk/extensions/ChangeAuthor/ChangeAuthor.php 2010-04-15 18:57:21 UTC (rev 65079) @@ -0,0 +1,50 @@ +<?php +/** + * 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 3 of the License, or + * (at your option) any later version. + * + * @file + * @ingroup Extensions + * @author Roan Kattouw <roan.katt...@home.nl> + * @copyright Copyright © 2007 Roan Kattouw + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License + * + * An extension that allows changing the author of a revision + * Written for the Bokt Wiki <http://www.bokt.nl/wiki/> by Roan Kattouw <roan.katt...@home.nl> + * For information how to install and use this extension, see the README file. + */ +# Alert the user that this is not a valid entry point to MediaWiki if they try to access the extension file directly. +if( !defined( 'MEDIAWIKI' ) ) { + echo <<<EOT +To install the ChangeAuthor extension, put the following line in LocalSettings.php: +require_once( "\$IP/extensions/ChangeAuthor/ChangeAuthor.php" ); +EOT; + exit( 1 ); +} + +// Extension credits that will show up on Special:Version +$wgExtensionCredits['specialpage'][] = array( + 'path' => __FILE__, + 'name' => 'ChangeAuthor', + 'author' => 'Roan Kattouw', + 'url' => 'http://www.mediawiki.org/wiki/Extension:ChangeAuthor', + 'version' => '1.1', + 'descriptionmsg' => 'changeauthor-desc', +); + +// Set up the new special page +$dir = dirname(__FILE__) . '/'; +$wgExtensionMessagesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.i18n.php'; +$wgExtensionAliasesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.alias.php'; +$wgAutoloadClasses['ChangeAuthor'] = $dir . 'ChangeAuthor.body.php'; + +$wgSpecialPages['ChangeAuthor'] = 'ChangeAuthor'; +$wgSpecialPageGroups['ChangeAuthor'] = 'pagetools'; + +// Add new log type +$wgLogTypes[] = 'changeauth'; +$wgLogNames['changeauth'] = 'changeauthor-logpagename'; +$wgLogHeaders['changeauth'] = 'changeauthor-logpagetext'; +$wgLogActions['changeauth/changeauth'] = 'changeauthor-logentry'; Deleted: trunk/extensions/ChangeAuthor/ChangeAuthor.setup.php =================================================================== --- trunk/extensions/ChangeAuthor/ChangeAuthor.setup.php 2010-04-15 18:50:43 UTC (rev 65078) +++ trunk/extensions/ChangeAuthor/ChangeAuthor.setup.php 2010-04-15 18:57:21 UTC (rev 65079) @@ -1,50 +0,0 @@ -<?php -/** - * 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 3 of the License, or - * (at your option) any later version. - * - * @file - * @ingroup Extensions - * @author Roan Kattouw <roan.katt...@home.nl> - * @copyright Copyright © 2007 Roan Kattouw - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License - * - * An extension that allows changing the author of a revision - * Written for the Bokt Wiki <http://www.bokt.nl/wiki/> by Roan Kattouw <roan.katt...@home.nl> - * For information how to install and use this extension, see the README file. - */ -# Alert the user that this is not a valid entry point to MediaWiki if they try to access the extension file directly. -if( !defined( 'MEDIAWIKI' ) ) { - echo <<<EOT -To install the ChangeAuthor extension, put the following line in LocalSettings.php: -require_once( "\$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php" ); -EOT; - exit( 1 ); -} - -// Extension credits that will show up on Special:Version -$wgExtensionCredits['specialpage'][] = array( - 'path' => __FILE__, - 'name' => 'ChangeAuthor', - 'author' => 'Roan Kattouw', - 'url' => 'http://www.mediawiki.org/wiki/Extension:ChangeAuthor', - 'version' => '1.1', - 'descriptionmsg' => 'changeauthor-desc', -); - -// Set up the new special page -$dir = dirname(__FILE__) . '/'; -$wgExtensionMessagesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.i18n.php'; -$wgExtensionAliasesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.alias.php'; -$wgAutoloadClasses['ChangeAuthor'] = $dir . 'ChangeAuthor.body.php'; - -$wgSpecialPages['ChangeAuthor'] = 'ChangeAuthor'; -$wgSpecialPageGroups['ChangeAuthor'] = 'pagetools'; - -// Add new log type -$wgLogTypes[] = 'changeauth'; -$wgLogNames['changeauth'] = 'changeauthor-logpagename'; -$wgLogHeaders['changeauth'] = 'changeauthor-logpagetext'; -$wgLogActions['changeauth/changeauth'] = 'changeauthor-logentry'; Modified: trunk/extensions/ChangeAuthor/LEESMIJ =================================================================== --- trunk/extensions/ChangeAuthor/LEESMIJ 2010-04-15 18:50:43 UTC (rev 65078) +++ trunk/extensions/ChangeAuthor/LEESMIJ 2010-04-15 18:57:21 UTC (rev 65079) @@ -23,7 +23,7 @@ 3. INSTALLATIE Download de .tar.gz genoemd onder (2.) en pak hem uit in /pad/naar/uw/wiki/extensions . Open dan LocalSettings.php, en voeg de volgende regel toe aan het einde: -require_once("$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php"); +require_once("$IP/extensions/ChangeAuthor/ChangeAuthor.php"); Controleer nu op de speciale pagina Speciaal:Versie of "ChangeAuthor" aan de lijst van extensies toegevoegd is. Modified: trunk/extensions/ChangeAuthor/README =================================================================== --- trunk/extensions/ChangeAuthor/README 2010-04-15 18:50:43 UTC (rev 65078) +++ trunk/extensions/ChangeAuthor/README 2010-04-15 18:57:21 UTC (rev 65079) @@ -24,7 +24,7 @@ 3. INSTALLATION Download the tarball mentioned in section 2, and extract it in /path/to/your/wiki/extensions . Open LocalSettings.php and add the following line at the end: -require_once("$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php"); +require_once("$IP/extensions/ChangeAuthor/ChangeAuthor.php"); You should now see the ChangeAuthor extension listed on the Special:Version special page. Modified: trunk/extensions/Configure/settings/Settings-ext.txt =================================================================== --- trunk/extensions/Configure/settings/Settings-ext.txt 2010-04-15 18:50:43 UTC (rev 65078) +++ trunk/extensions/Configure/settings/Settings-ext.txt 2010-04-15 18:57:21 UTC (rev 65079) @@ -212,7 +212,6 @@ url = http://www.mediawiki.org/wiki/Extension:CentralNotice ChangeAuthor -file = ChangeAuthor.setup.php url = http://www.mediawiki.org/wiki/Extension:ChangeAuthor CharInsert _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs