* (bug 13768) pt_title field encoding fixed
* Do not display empty columns on Special:UserRights if all groups are
changeable or all unchangeable
+* Fix fatal error on calling PAGESINCATEGORY with invalid category name
=== API changes in 1.13 ===
static function pagesincategory( $parser, $category = '', $raw = null ) {
global $wgExpensiveParserFunctionLimit;
- if ($category == '') {
+ $category = Category::newFromName($category);
+ if( !is_object( $category ) ) {
return 0;
}
$parser->mExpensiveFunctionCount++;
if ($parser->mExpensiveFunctionCount <= $wgExpensiveParserFunctionLimit) {
- $category = Category::newFromName($category);
$count = $category->getPageCount();
if ( !$count ) {
$count = 0;