Index: trunk/extensions/FlaggedRevs/dataclasses/FlaggedPage.php |
— | — | @@ -280,6 +280,9 @@ |
281 | 281 | * @return int |
282 | 282 | */ |
283 | 283 | public function getStable() { |
| 284 | + if ( !FlaggedRevs::inReviewNamespace( $this->mTitle ) ) { |
| 285 | + return 0; // short-circuit |
| 286 | + } |
284 | 287 | if ( !$this->mDataLoaded ) { |
285 | 288 | $this->loadPageData(); |
286 | 289 | } |
— | — | @@ -291,6 +294,9 @@ |
292 | 295 | * @return mixed (FlaggedRevision/null) |
293 | 296 | */ |
294 | 297 | public function getStableRev() { |
| 298 | + if ( !FlaggedRevs::inReviewNamespace( $this->mTitle ) ) { |
| 299 | + return null; // short-circuit |
| 300 | + } |
295 | 301 | if ( !$this->mDataLoaded ) { |
296 | 302 | $this->loadPageData(); |
297 | 303 | } |