Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -370,11 +370,12 @@ |
371 | 371 | function getPageLimit() { |
372 | 372 | $article = $this->article; |
373 | 373 | |
374 | | - $pout = $article->getParserOutput(); |
375 | | - $setLimit = $pout->getProperty('lqt-page-limit'); |
| 374 | + if ( $article->exists() ) { |
| 375 | + $pout = $article->getParserOutput(); |
| 376 | + $setLimit = $pout->getProperty('lqt-page-limit'); |
| 377 | + if ($setLimit) return $setLimit; |
| 378 | + } |
376 | 379 | |
377 | | - if ($setLimit) return $setLimit; |
378 | | - |
379 | 380 | global $wgLiquidThreadsDefaultPageLimit; |
380 | 381 | return $wgLiquidThreadsDefaultPageLimit; |
381 | 382 | } |