$limit = $wgCategoryPagingLimit;
$res = $dbr->select(
array( 'page', 'categorylinks' ),
- array( 'page_title', 'page_namespace', 'page_is_redirect', 'page_len', 'cl_sortkey' ),
+ array( 'page_title', 'page_namespace', 'page_len', 'cl_sortkey' ),
array( $pageCondition,
'cl_from = page_id',
'cl_to' => $this->mTitle->getDBKey()),
array_push( $children_start_char, $wgContLang->convert( $sortkey ) ) ;
} elseif( $showGallery && $title->getNamespace() == NS_IMAGE ) {
// Show thumbnails of categorized images, in a separate chunk
+ $anImage = new Image($title);
if( $flip ) {
- $ig->insert( Image::newFromTitle( $title ) );
+ $ig->insert( $anImage );
} else {
- $ig->add( Image::newFromTitle( $title ) );
+ $ig->add( $anImage );
}
+ unset($anImage);
} else {
// Page in this category
array_push( $articles, $sk->makeSizeLinkObj( $x->page_len, $title, $wgContLang->convert( $title->getPrefixedText() ) ) ) ;