r65636 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65635‎ | r65636 | r65637 >
Date:21:36, 28 April 2010
Author:siebrand
Status:deferred
Tags:
Comment:
stylize.php, trailing whitespace removed
Modified paths:
  • /trunk/extensions/ChangeAuthor/CHANGELOG (modified) (history)
  • /trunk/extensions/ChangeAuthor/ChangeAuthor.body.php (modified) (history)
  • /trunk/extensions/ChangeAuthor/ChangeAuthor.i18n.php (modified) (history)
  • /trunk/extensions/ChangeAuthor/ChangeAuthor.php (modified) (history)
  • /trunk/extensions/ChangeAuthor/LEESMIJ (modified) (history)
  • /trunk/extensions/ChangeAuthor/README (modified) (history)

Diff [purge]

Index: trunk/extensions/ChangeAuthor/CHANGELOG
@@ -1,2 +1,3 @@
22 == Changes since 1.0 ==
3 -* Fixed buggy message handling by making ChangeAuthor::loadMessages() the static function it's supposed to be.
\ No newline at end of file
 3+* Fixed buggy message handling by making ChangeAuthor::loadMessages() the static
 4+ function it's supposed to be.
Index: trunk/extensions/ChangeAuthor/LEESMIJ
@@ -18,7 +18,7 @@
1919 Deze extensie maakt het mogelijk om de auteur van een bewerking naderhand te veranderen. Zo kan een verandering door Piet veranderd worden zodat het lijkt alsof Klaas hem gemaakt heeft. Natuurlijk kunnen niet alle gebruikers dit doen, en worden alle veranderingen bijgehouden in een logboek.
2020
2121 2. VERANDERAUTEUR DOWNLOADEN
22 -U kunt een .tar.gz bestand downloaden op http://www.mediawiki.org/wiki/Special:ExtensionDistributor/ChangeAuthor .
 22+U kunt een .tar.gz bestand downloaden op http://www.mediawiki.org/wiki/Special:ExtensionDistributor/ChangeAuthor .
2323
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:
@@ -73,4 +73,4 @@
7474 VeranderAuteur wordt momenteel beheerd door Roan Kattouw. Indien u vragen hebt, klachten, idee�n voor nieuwe mogelijkheden, een fout gevonden hebt, of een andere reden hebt om contact op te nemen met de beheerder, stuur dan uw e-mails naar roan.kattouw@home.nl en noem "ChangeAuthor" in het onderwerp. In het Nederlands geschreven e-mails zijn ook welkom.
7575
7676 9. DANKWOORD
77 -VeranderAuteur is geschreven voor de Bokt Wiki <http://www.bokt.nl/wiki/> door Roan Kattouw <roan.kattouw@home.nl>
\ No newline at end of file
 77+VeranderAuteur is geschreven voor de Bokt Wiki <http://www.bokt.nl/wiki/> door Roan Kattouw <roan.kattouw@home.nl>
Index: trunk/extensions/ChangeAuthor/ChangeAuthor.body.php
@@ -15,8 +15,9 @@
1616 * Written for the Bokt Wiki <http://www.bokt.nl/wiki/> by Roan Kattouw <roan.kattouw@home.nl>
1717 * For information how to install and use this extension, see the README file.
1818 */
 19+
1920 # 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+if ( !defined( 'MEDIAWIKI' ) ) {
2122 echo <<<EOT
2223 To install the ChangeAuthor extension, put the following line in LocalSettings.php:
2324 require_once( "\$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php" );
@@ -49,39 +50,39 @@
5051 $this->setHeaders();
5152
5253 // Check permissions
53 - if( !$this->userCanExecute( $wgUser ) ) {
 54+ if ( !$this->userCanExecute( $wgUser ) ) {
5455 $this->displayRestrictionError();
5556 return;
5657 }
5758
5859 $wgOut->setPageTitle( wfMsg( 'changeauthor-title' ) );
5960
60 - if( !is_null( $par ) ) {
 61+ if ( !is_null( $par ) ) {
6162 $obj = $this->parseTitleOrRevID( $par );
62 - if( $obj instanceof Title ) {
63 - if( $obj->exists() ) {
 63+ if ( $obj instanceof Title ) {
 64+ if ( $obj->exists() ) {
6465 $wgOut->addHTML( $this->buildRevisionList( $obj ) );
6566 } else {
6667 $wgOut->addHTML( $this->buildInitialForm( wfMsg( 'changeauthor-nosuchtitle', $obj->getPrefixedText() ) ) );
6768 }
6869 return;
69 - } elseif( $obj instanceof Revision ) {
 70+ } elseif ( $obj instanceof Revision ) {
7071 $wgOut->addHTML( $this->buildOneRevForm( $obj ) );
7172 return;
7273 }
7374 }
7475
7576 $action = $wgRequest->getVal( 'action' );
76 - if( $wgRequest->wasPosted() && $action == 'change' ) {
 77+ if ( $wgRequest->wasPosted() && $action == 'change' ) {
7778 $arr = $this->parseChangeRequest();
78 - if( !is_array( $arr ) ) {
 79+ if ( !is_array( $arr ) ) {
7980 $targetPage = $wgRequest->getVal( 'targetpage' );
80 - if( !is_null( $targetPage ) ) {
 81+ if ( !is_null( $targetPage ) ) {
8182 $wgOut->addHTML( $this->buildRevisionList( Title::newFromURL( $targetPage ), $arr ) );
8283 return;
8384 }
8485 $targetRev = $wgRequest->getVal( 'targetrev' );
85 - if( !is_null( $targetRev ) ) {
 86+ if ( !is_null( $targetRev ) ) {
8687 $wgOut->addHTML( $this->buildOneRevForm( Revision::newFromId( $targetRev ), $arr ) );
8788 return;
8889 }
@@ -92,15 +93,15 @@
9394 }
9495 return;
9596 }
96 - if( $wgRequest->wasPosted() && $action == 'list' ) {
 97+ if ( $wgRequest->wasPosted() && $action == 'list' ) {
9798 $obj = $this->parseTitleOrRevID( $wgRequest->getVal( 'pagename-revid' ) );
98 - if( $obj instanceof Title ) {
99 - if( $obj->exists() ) {
 99+ if ( $obj instanceof Title ) {
 100+ if ( $obj->exists() ) {
100101 $wgOut->addHTML( $this->buildRevisionList( $obj ) );
101102 } else {
102103 $wgOut->addHTML( $this->buildInitialForm( wfMsg( 'changeauthor-nosuchtitle', $obj->getPrefixedText() ) ) );
103104 }
104 - } elseif( $obj instanceof Revision ) {
 105+ } elseif ( $obj instanceof Revision ) {
105106 $wgOut->addHTML( $this->buildOneRevForm( $obj ) );
106107 }
107108 return;
@@ -115,10 +116,10 @@
116117 */
117118 private function parseTitleOrRevID( $str ) {
118119 $retval = false;
119 - if( is_numeric( $str ) ) {
 120+ if ( is_numeric( $str ) ) {
120121 $retval = Revision::newFromID( $str );
121122 }
122 - if( !$retval ) {
 123+ if ( !$retval ) {
123124 $retval = Title::newFromURL( $str );
124125 }
125126 return $retval;
@@ -139,7 +140,7 @@
140141 $retval .= Xml::inputLabel( wfMsg( 'changeauthor-pagename-or-revid' ),
141142 'pagename-revid', 'pagename-revid' );
142143 $retval .= Xml::submitButton( wfMsg( 'changeauthor-pagenameform-go' ) );
143 - if( $errMsg != '' ) {
 144+ if ( $errMsg != '' ) {
144145 $retval .= Xml::openElement( 'p' ) . Xml::openElement( 'b' );
145146 $retval .= Xml::element( 'font', array( 'color' => 'red' ), $errMsg );
146147 $retval .= Xml::closeElement( 'b' ) . Xml::closeElement( 'p' );
@@ -161,7 +162,7 @@
162163 */
163164 private function buildRevisionLine( $rev, $title, $isFirst = false, $isLast = false ) {
164165 // Build curlink
165 - if( $isFirst ) {
 166+ if ( $isFirst ) {
166167 $curLink = wfMsgExt( 'cur', 'escape' );
167168 } else {
168169 $curLink = $this->skin->makeKnownLinkObj( $title,
@@ -169,7 +170,7 @@
170171 "oldid={$rev->getId()}&diff=cur" );
171172 }
172173
173 - if( $isLast ) {
 174+ if ( $isLast ) {
174175 $lastLink = wfMsgExt( 'last', 'escape' );
175176 } else {
176177 $lastLink = $this->skin->makeKnownLinkObj( $title,
@@ -180,7 +181,7 @@
181182 // Build oldid link
182183 global $wgLang;
183184 $date = $wgLang->timeanddate( wfTimestamp( TS_MW, $rev->getTimestamp() ), true );
184 - if( $rev->userCan( Revision::DELETED_TEXT ) ) {
 185+ if ( $rev->userCan( Revision::DELETED_TEXT ) ) {
185186 $link = $this->skin->makeKnownLinkObj( $title, $date, "oldid={$rev->getId()}" );
186187 } else {
187188 $link = $date;
@@ -191,8 +192,8 @@
192193 $userBox = Xml::input( "user-new-{$rev->getId()}", 50, $wgRequest->getVal( "user-{$rev->getId()}", $rev->getUserText() ) );
193194 $userText = Xml::hidden( "user-old-{$rev->getId()}", $rev->getUserText() ) . $rev->getUserText();
194195
195 - if( !is_null( $size = $rev->getSize() ) ) {
196 - if( $size == 0 ) {
 196+ if ( !is_null( $size = $rev->getSize() ) ) {
 197+ if ( $size == 0 ) {
197198 $stxt = wfMsgHtml( 'historyempty' );
198199 } else {
199200 $stxt = wfMsgHtml( 'historysize', $wgLang->formatNum( $size ) );
@@ -223,10 +224,10 @@
224225 array( 'ORDER BY' => 'rev_timestamp DESC', 'LIMIT' => 50 )
225226 );
226227 $revs = array();
227 - while( ( $r = $dbr->fetchObject( $res ) ) ) {
 228+ while ( ( $r = $dbr->fetchObject( $res ) ) ) {
228229 $revs[] = new Revision( $r );
229230 }
230 - if( empty( $revs ) ) {
 231+ if ( empty( $revs ) ) {
231232 // That's *very* weird
232233 return wfMsg( 'changeauthor-weirderror' );
233234 }
@@ -237,14 +238,14 @@
238239 $retval .= Xml::hidden( 'targetpage', $title->getPrefixedDBkey() );
239240 $retval .= Xml::openElement( 'fieldset' );
240241 $retval .= Xml::element( 'p', array(), wfMsg( 'changeauthor-explanation-multi' ) );
241 - $retval .= Xml::inputLabel( wfMsg( 'changeauthor-comment'), 'comment', 'comment', 50);
 242+ $retval .= Xml::inputLabel( wfMsg( 'changeauthor-comment' ), 'comment', 'comment', 50 );
242243 $retval .= Xml::submitButton(
243244 wfMsgExt( 'changeauthor-changeauthors-multi',
244245 array( 'parsemag', 'escape' ),
245246 count( $revs )
246247 )
247248 );
248 - if( $errMsg != '' ) {
 249+ if ( $errMsg != '' ) {
249250 $retval .= Xml::openElement( 'p' ) . Xml::openElement( 'b' );
250251 $retval .= Xml::element( 'font', array( 'color' => 'red' ), $errMsg );
251252 $retval .= Xml::closeElement( 'b' ) . Xml::closeElement( 'p' );
@@ -252,7 +253,7 @@
253254 $retval .= Xml::element( 'h2', array(), $title->getPrefixedText() );
254255 $retval .= Xml::openElement( 'ul' );
255256 $count = count( $revs );
256 - foreach( $revs as $i => $rev ) {
 257+ foreach ( $revs as $i => $rev ) {
257258 $retval .= $this->buildRevisionLine( $rev, $title, ( $i == 0 ), ( $i == $count - 1 ) );
258259 }
259260 $retval .= Xml::closeElement( 'ul' );
@@ -277,7 +278,7 @@
278279 $retval .= Xml::element( 'p', array(), wfMsg( 'changeauthor-explanation-single' ) );
279280 $retval .= Xml::inputLabel( wfMsg( 'changeauthor-comment' ), 'comment', 'comment' );
280281 $retval .= Xml::submitButton( wfMsg( 'changeauthor-changeauthors-single' ) );
281 - if( $errMsg != '' ) {
 282+ if ( $errMsg != '' ) {
282283 $retval .= Xml::openElement( 'p' ) . Xml::openElement( 'b' );
283284 $retval .= Xml::element( 'font', array( 'color' => 'red' ), $errMsg );
284285 $retval .= Xml::closeElement( 'b' ) . Xml::closeElement( 'p' );
@@ -299,27 +300,27 @@
300301 global $wgRequest;
301302 $vals = $wgRequest->getValues();
302303 $retval = array();
303 - foreach( $vals as $name => $val ) {
304 - if( substr( $name, 0, 9 ) != 'user-new-' ) {
 304+ foreach ( $vals as $name => $val ) {
 305+ if ( substr( $name, 0, 9 ) != 'user-new-' ) {
305306 continue;
306307 }
307308 $revid = substr( $name, 9 );
308 - if( !is_numeric( $revid ) ) {
 309+ if ( !is_numeric( $revid ) ) {
309310 continue;
310311 }
311312
312313 $new = User::newFromName( $val, false );
313 - if( !$new ) { // Can this even happen?
 314+ if ( !$new ) { // Can this even happen?
314315 return wfMsg( 'changeauthor-invalid-username', $val );
315316 }
316 - if( $new->getId() == 0 && $val != 'MediaWiki default' && !User::isIP( $new->getName() ) ) {
 317+ if ( $new->getId() == 0 && $val != 'MediaWiki default' && !User::isIP( $new->getName() ) ) {
317318 return wfMsg( 'changeauthor-nosuchuser', $val );
318319 }
319320 $old = User::newFromName( $wgRequest->getVal( "user-old-$revid" ), false );
320 - if( !$old->getName() ) {
 321+ if ( !$old->getName() ) {
321322 return wfMsg( 'changeauthor-invalidform' );
322323 }
323 - if( $old->getName() != $new->getName() ) {
 324+ if ( $old->getName() != $new->getName() ) {
324325 $retval[$revid] = array( $old, $new );
325326 }
326327 }
@@ -336,7 +337,7 @@
337338 $dbw->begin();
338339 $editcounts = array(); // Array to keep track of EC mutations; key=userid, value=mutation
339340 $log = new LogPage( 'changeauth' );
340 - foreach( $authors as $id => $users ) {
 341+ foreach ( $authors as $id => $users ) {
341342 $dbw->update(
342343 'revision',
343344 /* SET */array(
@@ -360,11 +361,11 @@
361362 $editcounts[$users[1]->getId()]++;
362363 $editcounts[$users[0]->getId()]--;
363364 }
364 - foreach( $editcounts as $userid => $mutation ) {
365 - if( $mutation == 0 || $userid == 0 ) {
 365+ foreach ( $editcounts as $userid => $mutation ) {
 366+ if ( $mutation == 0 || $userid == 0 ) {
366367 continue;
367368 }
368 - if( $mutation > 0 ) {
 369+ if ( $mutation > 0 ) {
369370 $mutation = "+$mutation";
370371 }
371372 $dbw->update(
@@ -373,7 +374,7 @@
374375 array( 'user_id' => $userid ),
375376 __METHOD__
376377 );
377 - if( $dbw->affectedRows() == 0 ) {
 378+ if ( $dbw->affectedRows() == 0 ) {
378379 // Let's have mercy on those who don't have a proper DB server
379380 // (but not enough to spare their master)
380381 $count = $dbw->selectField(
@@ -392,5 +393,4 @@
393394 }
394395 $dbw->commit();
395396 }
396 -
397 -}
\ No newline at end of file
 397+}
Index: trunk/extensions/ChangeAuthor/ChangeAuthor.i18n.php
@@ -15,8 +15,9 @@
1616 * Written for the Bokt Wiki <http://www.bokt.nl/wiki/> by Roan Kattouw <roan.kattouw@home.nl>
1717 * For information how to install and use this extension, see the README file.
1818 */
 19+
1920 # 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+if ( !defined( 'MEDIAWIKI' ) ) {
2122 echo <<<EOT
2223 To install the ChangeAuthor extension, put the following line in LocalSettings.php:
2324 require_once( "\$IP/extensions/ChangeAuthor/ChangeAuthor.setup.php" );
@@ -423,8 +424,8 @@
424425 'changeauthor-nosuchuser' => 'L\'usuari "$1" no existeix.',
425426 'changeauthor-revview' => 'Revisió número $1 de $2',
426427 'changeauthor-nosuchtitle' => 'No hi ha cap pàgina anomenada "$1".',
427 - 'changeauthor-weirderror' => "Ha ocorregut un error poc comú.
428 -Si us plau, intenteu-ho de nou.
 428+ 'changeauthor-weirderror' => "Ha ocorregut un error poc comú.
 429+Si us plau, intenteu-ho de nou.
429430 Si l'error persisteix, és probable que la base de dades estigui avariada.",
430431 'changeauthor-invalidform' => 'Useu el formulari de la [[Special:ChangeAuthor|pàgina especial]] adient.',
431432 'changeauthor-success' => 'La vostra petició ha estat processada satisfactòriament.',
@@ -1397,7 +1398,7 @@
13981399 'changeauthor-pagenameform-go' => 'പോകൂ',
13991400 'changeauthor-comment' => 'അഭിപ്രായം:',
14001401 'changeauthor-changeauthors-multi' => 'ലേഖകരെ മാറ്റുക',
1401 - 'changeauthor-explanation-multi' => "ഈ താൾ ഉപയോഗിച്ച് താങ്കൾക്ക് ഒരു പതിപ്പിന്റെ ലേഖകനെ മാറ്റാവുന്നതാണ്‌.
 1402+ 'changeauthor-explanation-multi' => "ഈ താൾ ഉപയോഗിച്ച് താങ്കൾക്ക് ഒരു പതിപ്പിന്റെ ലേഖകനെ മാറ്റാവുന്നതാണ്‌.
14021403 താഴെയുള്ള പട്ടികയിൽ ഒന്നോ അതിലധികമോ ഉപയോക്തൃനാമങ്ങൾ മാറ്റിയിട്ട്, അഭിപ്രായം രേഖപ്പെടുത്തിയതിനു ശേഷം (നിർബന്ധമില്ല), 'ലേഖകരെ മാറ്റുക' എന്ന ബട്ടൺ ഞെക്കുക.",
14031404 'changeauthor-changeauthors-single' => 'ലേഖകനെ മാറ്റുക',
14041405 'changeauthor-explanation-single' => "ഈ ഫോം ഉപയോഗിച്ച് ഒരു പതിപ്പിന്റെ ലേഖകനെ താങ്കൾക്ക് മാറ്റാവുന്നതാണ്‌. താഴെയുള്ള ഫോമിൽ ഉപയോക്തൃനാമം മാറ്റി, ലേഖകനെ മാറ്റാനുള്ള കാരണവും രേഖപ്പെടുത്തി (നിർബന്ധമില്ല), 'ലേഖകനെ മാറ്റുക' എന്ന ബട്ടൺ ഞെക്കുക.",
@@ -1520,7 +1521,7 @@
15211522 'changeauthor-pagenameform-go' => 'Gå',
15221523 'changeauthor-comment' => 'Kommentar:',
15231524 'changeauthor-changeauthors-multi' => 'Endra {{PLURAL:$1|forfattar|forfattarar}}',
1524 - 'changeauthor-explanation-multi' => 'Med dette skjemaet kan du endra kven som blir oppgjeve som forfattar til versjonar.
 1525+ 'changeauthor-explanation-multi' => 'Med dette skjemaet kan du endra kven som blir oppgjeve som forfattar til versjonar.
15251526 Endra eitt eller fleire av brukarnamna i lista nedanfor, legg til ein (valfri) kommentar og trykk knappen «Endra forfattar(ar)».',
15261527 'changeauthor-changeauthors-single' => 'Endra forfattar',
15271528 'changeauthor-explanation-single' => 'Med dette skjemaet kan du endra på kven som blir oppgjeve som forfattaren til ein versjon. Endra brukarnamnet nedanfor, legg til ein (valfri) kommentar, og trykk på knappen «Endra forfattar».',
@@ -1740,8 +1741,8 @@
17411742 'changeauthor-nosuchuser' => 'Utilizador "$1" não existe.',
17421743 'changeauthor-revview' => 'Revisão #$1 de $2',
17431744 'changeauthor-nosuchtitle' => 'Não existe nenhuma página chamada "$1".',
1744 - 'changeauthor-weirderror' => 'Ocorreu um erro muito estranho.
1745 -Por favor, tente o seu pedido de novo.
 1745+ 'changeauthor-weirderror' => 'Ocorreu um erro muito estranho.
 1746+Por favor, tente o seu pedido de novo.
17461747 Se este erro persistir, provavelmente a base de dados não está em boas condições.',
17471748 'changeauthor-invalidform' => 'Por favor, utilize o formulário fornecido pela [[Special:ChangeAuthor|página especial]] em vez de um formulário personalizado.',
17481749 'changeauthor-success' => 'O seu pedido foi processado com sucesso.',
@@ -2394,4 +2395,3 @@
23952396 'changeauthor-logentry' => '更改[[$1]]修訂版本$2的作者從 $3 到 $4',
23962397 'changeauthor-logpagename' => '作者更改日誌',
23972398 );
2398 -
Index: trunk/extensions/ChangeAuthor/README
@@ -19,7 +19,7 @@
2020 This extension allows for changing the author of a revision, e.g. an edit made by Alice can be changed to look like it was made by Bob instead. Of course, only privileged users can do this, and all changes are logged.
2121
2222 2. WHERE TO GET CHANGEAUTHOR
23 -You can download a tarball at http://www.mediawiki.org/wiki/Special:ExtensionDistributor/ChangeAuthor .
 23+You can download a tarball at http://www.mediawiki.org/wiki/Special:ExtensionDistributor/ChangeAuthor .
2424
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:
@@ -45,7 +45,7 @@
4646 $wgGroupPermissions['groupname']['changeauthor'] = true;
4747
4848 to LocalSettings.php (replace 'groupname' with the name of your custom group).
49 -NOTE: If a user is in multiple groups, they will be able to use ChangeAuthor even if that's allowed for only one of those groups. E.g.: if group A can't use ChangeAuthor but group B can, a user in both group A and B will be allowed to use ChangeAuthor.
 49+NOTE: If a user is in multiple groups, they will be able to use ChangeAuthor even if that's allowed for only one of those groups. E.g.: if group A can't use ChangeAuthor but group B can, a user in both group A and B will be allowed to use ChangeAuthor.
5050
5151 4B. CREATING A NEW GROUP
5252 You can also create a separate group for users who can use ChangeAuthor. To do this, add the following line to LocalSettings.php:
@@ -75,4 +75,4 @@
7676 ChangeAuthor is currently maintained by Roan Kattouw. If you have any questions, complaints, feature requests, found a bug, or any other reason to contact the maintainer, please send your e-mails to roan.kattouw@home.nl and mention "ChangeAuthor" in the subject.
7777
7878 10. CREDITS
79 -ChangeAuthor was written for the Bokt Wiki <http://www.bokt.nl/wiki/> by Roan Kattouw <roan.kattouw@home.nl>
\ No newline at end of file
 79+ChangeAuthor was written for the Bokt Wiki <http://www.bokt.nl/wiki/> by Roan Kattouw <roan.kattouw@home.nl>
Index: trunk/extensions/ChangeAuthor/ChangeAuthor.php
@@ -8,7 +8,7 @@
99 * @file
1010 * @ingroup Extensions
1111 * @author Roan Kattouw <roan.kattouw@home.nl>
12 - * @copyright Copyright © 2007 Roan Kattouw
 12+ * @copyright Copyright © 2007 Roan Kattouw
1313 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
1414 *
1515 * An extension that allows changing the author of a revision
@@ -16,7 +16,7 @@
1717 * For information how to install and use this extension, see the README file.
1818 */
1919 # 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' ) ) {
 20+if ( !defined( 'MEDIAWIKI' ) ) {
2121 echo <<<EOT
2222 To install the ChangeAuthor extension, put the following line in LocalSettings.php:
2323 require_once( "\$IP/extensions/ChangeAuthor/ChangeAuthor.php" );
@@ -35,7 +35,7 @@
3636 );
3737
3838 // Set up the new special page
39 -$dir = dirname(__FILE__) . '/';
 39+$dir = dirname( __FILE__ ) . '/';
4040 $wgExtensionMessagesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.i18n.php';
4141 $wgExtensionAliasesFiles['ChangeAuthor'] = $dir . 'ChangeAuthor.alias.php';
4242 $wgAutoloadClasses['ChangeAuthor'] = $dir . 'ChangeAuthor.body.php';

Status & tagging log