Index: trunk/phase3/includes/Article.php |
— | — | @@ -1093,7 +1093,12 @@ |
1094 | 1094 | $extraParams['unhide'] = 1; |
1095 | 1095 | } |
1096 | 1096 | |
1097 | | - $revision = Revision::newFromId( $oldid ); |
| 1097 | + if ( $this->mRevision && $this->mRevision->getId() === $oldid ) { |
| 1098 | + $revision = $this->mRevision; |
| 1099 | + } else { |
| 1100 | + $revision = Revision::newFromId( $oldid ); |
| 1101 | + } |
| 1102 | + |
1098 | 1103 | $timestamp = $revision->getTimestamp(); |
1099 | 1104 | |
1100 | 1105 | $current = ( $oldid == $this->mPage->getLatest() ); |