dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca6c997
)
Use spiffier variable swap method. Might not be as pretty as those iterators Tim...
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Fri, 6 Jul 2007 07:11:58 +0000
(07:11 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Fri, 6 Jul 2007 07:11:58 +0000
(07:11 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
b5d967b
..
b86768d
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-100,9
+100,7
@@
class EditPage {
if ($undo > 0 && $undoafter > 0 && $undo < $undoafter) {
# If they got undoafter and undo round the wrong way, switch them
- $temp = $undoafter;
- $undoafter = $undo;
- $undo = $temp;
+ list( $undo, $undoafter ) = array( $undoafter, $undo );
}
if ( $undo > 0 && $undo > $undoafter ) {