Index: trunk/phase3/includes/Article.php |
— | — | @@ -289,18 +289,21 @@ |
290 | 290 | $this->mRevision = Revision::newFromId( $oldid ); |
291 | 291 | if ( !$this->mRevision ) { |
292 | 292 | wfDebug( __METHOD__ . " failed to retrieve specified revision, id $oldid\n" ); |
| 293 | + wfProfileOut( __METHOD__ ); |
293 | 294 | return false; |
294 | 295 | } |
295 | 296 | } |
296 | 297 | } else { |
297 | 298 | if ( !$this->mPage->getLatest() ) { |
298 | 299 | wfDebug( __METHOD__ . " failed to find page data for title " . $this->getTitle()->getPrefixedText() . "\n" ); |
| 300 | + wfProfileOut( __METHOD__ ); |
299 | 301 | return false; |
300 | 302 | } |
301 | 303 | |
302 | 304 | $this->mRevision = $this->mPage->getRevision(); |
303 | 305 | if ( !$this->mRevision ) { |
304 | 306 | wfDebug( __METHOD__ . " failed to retrieve current page, rev_id " . $this->mPage->getLatest() . "\n" ); |
| 307 | + wfProfileOut( __METHOD__ ); |
305 | 308 | return false; |
306 | 309 | } |
307 | 310 | } |