Index: trunk/phase3/includes/Article.php |
— | — | @@ -719,13 +719,11 @@ |
720 | 720 | $this->mTimestamp = $revision->getTimestamp(); |
721 | 721 | $this->mComment = $revision->getComment(); |
722 | 722 | $this->mMinorEdit = $revision->isMinor(); |
723 | | - $this->mRevIdFetched = $revision->getId(); |
724 | 723 | } |
725 | 724 | |
726 | 725 | /** |
727 | 726 | * @return string GMT timestamp of last article revision |
728 | | - **/ |
729 | | - |
| 727 | + */ |
730 | 728 | public function getTimestamp() { |
731 | 729 | // Check if the field has been filled by ParserCache::get() |
732 | 730 | if ( !$this->mTimestamp ) { |
— | — | @@ -775,8 +773,11 @@ |
776 | 774 | * @return int revision ID of last article revision |
777 | 775 | */ |
778 | 776 | public function getRevIdFetched() { |
779 | | - $this->loadLastEdit(); |
780 | | - return $this->mRevIdFetched; |
| 777 | + if ( $this->mRevIdFetched ) { |
| 778 | + return $this->mRevIdFetched; |
| 779 | + } else { |
| 780 | + return $this->getLatest(); |
| 781 | + } |
781 | 782 | } |
782 | 783 | |
783 | 784 | /** |