r65079 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65078‎ | r65079 | r65080 >
Date:18:57, 15 April 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Rename 'setup' file to have the same name as the parent directory. Update Configure accordingly.
Modified paths:
  • /trunk/extensions/ChangeAuthor/ChangeAuthor.php (added) (history)
  • /trunk/extensions/ChangeAuthor/ChangeAuthor.setup.php (deleted) (history)
  • /trunk/extensions/ChangeAuthor/LEESMIJ (modified) (history)
  • /trunk/extensions/ChangeAuthor/README (modified) (history)
  • /trunk/extensions/Configure/settings/Settings-ext.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/ChangeAuthor/ChangeAuthor.setup.php
@@ -1,50 +0,0 @@
2 -<?php
3 -/**
4 - * This program is free software; you can redistribute it and/or modify
5 - * it under the terms of the GNU General Public License as published by
6 - * the Free Software Foundation; either version 3 of the License, or
7 - * (at your option) any later version.
8 - *
9 - * @file
10 - * @ingroup Extensions
11 - * @author Roan Kattouw <roan.kattouw@home.nl>
12 - * @copyright Copyright © 2007 Roan Kattouw
13 - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
14 - *
15 - * An extension that allows changing the author of a revision
16 - * Written for the Bokt Wiki <http://www.bokt.nl/wiki/> by Roan Kattouw <roan.kattouw@home.nl>
17 - * For information how to install and use this extension, see the README file.
18 - */
19 -# Alert the user that this is not a valid entry point to MediaWiki if they try to access the extension file directly.
20 -if( !defined( 'MEDIAWIKI' ) ) {
21 - echo <<<EOT
22 -To install the ChangeAuthor extension, put the following line in LocalSettings.php:
23 -require_once( "\$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php" );
24 -EOT;
25 - exit( 1 );
26 -}
27 -
28 -// Extension credits that will show up on Special:Version
29 -$wgExtensionCredits['specialpage'][] = array(
30 - 'path' => __FILE__,
31 - 'name' => 'ChangeAuthor',
32 - 'author' => 'Roan Kattouw',
33 - 'url' => 'http://www.mediawiki.org/wiki/Extension:ChangeAuthor',
34 - 'version' => '1.1',
35 - 'descriptionmsg' => 'changeauthor-desc',
36 -);
37 -
38 -// Set up the new special page
39 -$dir = dirname(__FILE__) . '/';
40 -$wgExtensionMessagesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.i18n.php';
41 -$wgExtensionAliasesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.alias.php';
42 -$wgAutoloadClasses['ChangeAuthor'] = $dir . 'ChangeAuthor.body.php';
43 -
44 -$wgSpecialPages['ChangeAuthor'] = 'ChangeAuthor';
45 -$wgSpecialPageGroups['ChangeAuthor'] = 'pagetools';
46 -
47 -// Add new log type
48 -$wgLogTypes[] = 'changeauth';
49 -$wgLogNames['changeauth'] = 'changeauthor-logpagename';
50 -$wgLogHeaders['changeauth'] = 'changeauthor-logpagetext';
51 -$wgLogActions['changeauth/changeauth'] = 'changeauthor-logentry';
Index: trunk/extensions/ChangeAuthor/LEESMIJ
@@ -23,7 +23,7 @@
2424 3. INSTALLATIE
2525 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:
2626
27 -require_once("$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php");
 27+require_once("$IP/extensions/ChangeAuthor/ChangeAuthor.php");
2828
2929 Controleer nu op de speciale pagina Speciaal:Versie of "ChangeAuthor" aan de lijst van extensies toegevoegd is.
3030
Index: trunk/extensions/ChangeAuthor/README
@@ -24,7 +24,7 @@
2525 3. INSTALLATION
2626 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:
2727
28 -require_once("$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php");
 28+require_once("$IP/extensions/ChangeAuthor/ChangeAuthor.php");
2929
3030 You should now see the ChangeAuthor extension listed on the Special:Version special page.
3131
Index: trunk/extensions/ChangeAuthor/ChangeAuthor.php
@@ -0,0 +1,50 @@
 2+<?php
 3+/**
 4+ * This program is free software; you can redistribute it and/or modify
 5+ * it under the terms of the GNU General Public License as published by
 6+ * the Free Software Foundation; either version 3 of the License, or
 7+ * (at your option) any later version.
 8+ *
 9+ * @file
 10+ * @ingroup Extensions
 11+ * @author Roan Kattouw <roan.kattouw@home.nl>
 12+ * @copyright Copyright © 2007 Roan Kattouw
 13+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
 14+ *
 15+ * An extension that allows changing the author of a revision
 16+ * Written for the Bokt Wiki <http://www.bokt.nl/wiki/> by Roan Kattouw <roan.kattouw@home.nl>
 17+ * For information how to install and use this extension, see the README file.
 18+ */
 19+# Alert the user that this is not a valid entry point to MediaWiki if they try to access the extension file directly.
 20+if( !defined( 'MEDIAWIKI' ) ) {
 21+ echo <<<EOT
 22+To install the ChangeAuthor extension, put the following line in LocalSettings.php:
 23+require_once( "\$IP/extensions/ChangeAuthor/ChangeAuthor.php" );
 24+EOT;
 25+ exit( 1 );
 26+}
 27+
 28+// Extension credits that will show up on Special:Version
 29+$wgExtensionCredits['specialpage'][] = array(
 30+ 'path' => __FILE__,
 31+ 'name' => 'ChangeAuthor',
 32+ 'author' => 'Roan Kattouw',
 33+ 'url' => 'http://www.mediawiki.org/wiki/Extension:ChangeAuthor',
 34+ 'version' => '1.1',
 35+ 'descriptionmsg' => 'changeauthor-desc',
 36+);
 37+
 38+// Set up the new special page
 39+$dir = dirname(__FILE__) . '/';
 40+$wgExtensionMessagesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.i18n.php';
 41+$wgExtensionAliasesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.alias.php';
 42+$wgAutoloadClasses['ChangeAuthor'] = $dir . 'ChangeAuthor.body.php';
 43+
 44+$wgSpecialPages['ChangeAuthor'] = 'ChangeAuthor';
 45+$wgSpecialPageGroups['ChangeAuthor'] = 'pagetools';
 46+
 47+// Add new log type
 48+$wgLogTypes[] = 'changeauth';
 49+$wgLogNames['changeauth'] = 'changeauthor-logpagename';
 50+$wgLogHeaders['changeauth'] = 'changeauthor-logpagetext';
 51+$wgLogActions['changeauth/changeauth'] = 'changeauthor-logentry';
Property changes on: trunk/extensions/ChangeAuthor/ChangeAuthor.php
___________________________________________________________________
Name: svn:eol-style
152 + native
Index: trunk/extensions/Configure/settings/Settings-ext.txt
@@ -212,7 +212,6 @@
213213 url = http://www.mediawiki.org/wiki/Extension:CentralNotice
214214
215215 ChangeAuthor
216 -file = ChangeAuthor.setup.php
217216 url = http://www.mediawiki.org/wiki/Extension:ChangeAuthor
218217
219218 CharInsert

Status & tagging log