r45893 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45892‎ | r45893 | r45894 >
Date:14:01, 19 January 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Remove some trailing whitespace in Uniwiki extensions
Modified paths:
  • /trunk/extensions/uniwiki/AutoCreateCategoryPages/AutoCreateCategoryPages.body.php (modified) (history)
  • /trunk/extensions/uniwiki/FormatChanges/FormatChanges.body.php (modified) (history)
  • /trunk/extensions/uniwiki/GenericEditPage/GenericEditPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/uniwiki/GenericEditPage/GenericEditPage.php
@@ -614,7 +614,7 @@
615615 $out->addHTML ( "<div class='locked-text' id='locked-text-$i'>" . $text . "</div>" );
616616 } else {
617617 // add the editable text for this section
618 - $text = (empty($result[$i]['text'])) ? "" : $result[$i]['text'];
 618+ $text = (empty($result[$i]['text'])) ? "" : $result[$i]['text'];
619619 $text = htmlspecialchars ($text , ENT_QUOTES );
620620 $out->addHTML ( "<textarea name='section-$i' class='editor'>$text</textarea>" );
621621 }
Index: trunk/extensions/uniwiki/FormatChanges/FormatChanges.body.php
@@ -5,9 +5,9 @@
66 return false;
77 }
88 }
9 -
 9+
1010 class UniwikiChangesList extends ChangesList {
11 -
 11+
1212 public function recentChangesLine( &$rc, $watched = false ) {
1313 global $wgLang;
1414
Index: trunk/extensions/uniwiki/AutoCreateCategoryPages/AutoCreateCategoryPages.body.php
@@ -1,5 +1,5 @@
22 <?php
3 -
 3+
44 class UniwikiAutoCreateCategoryPages {
55 public function UW_AutoCreateCategoryPages_Save ( &$article, &$user, &$text, &$summary, &$minoredit, &$watchthis, &$sectionanchor, &$flags, $revision ) {
66 global $wgDBprefix;
@@ -20,10 +20,10 @@
2121 $on_page = array();
2222 foreach ( $matches[1] as $cat )
2323 $on_page[] = Title::newFromText ( $cat )->getDBkey();
24 -
 24+
2525 $regex = "/\[\[category:(.+?)(?:\|.*)?\]\]/i";
2626 preg_match_all ( $regex, $text, $matches );
27 -
 27+
2828 foreach ( $matches[1] as $cat )
2929 $on_page[] = Title::newFromText ( $cat )->getDBkey();
3030

Status & tagging log