r23772 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23771‎ | r23772 | r23773 >
Date:07:11, 6 July 2007
Author:simetrical
Status:old
Tags:
Comment:
Use spiffier variable swap method. Might not be as pretty as those iterators Tim was rhapsodizing about earlier today, though.
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -100,9 +100,7 @@
101101
102102 if ($undo > 0 && $undoafter > 0 && $undo < $undoafter) {
103103 # If they got undoafter and undo round the wrong way, switch them
104 - $temp = $undoafter;
105 - $undoafter = $undo;
106 - $undo = $temp;
 104+ list( $undo, $undoafter ) = array( $undoafter, $undo );
107105 }
108106
109107 if ( $undo > 0 && $undo > $undoafter ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r23912Merged revisions 23662-23909 via svnmerge from...david18:11, 9 July 2007

Status & tagging log