This saves some queries and is more user friendly:
If user navigates via "(previous 200) (next 200)", don't show the other sections. I'm not talking about "from"...
Background: If the user browses through e.g. the list of subcats, he doesn't care much about the images atm. If he wants to see everything again he can click "catgeory" in the upper left.
Example without image gallery section:
public function getHTML() {
global $wgOut, $wgContLang, $wgRequest; wfProfileIn( __METHOD__ ); $this->clearCategoryState(); $this->doCategoryQuery(); $this->finaliseCategoryState(); $subcatfrom = $wgRequest->getVal( 'subcatfrom' ); $subcatuntil = $wgRequest->getVal( 'subcatuntil' ); $pagefrom = $wgRequest->getVal( 'pagefrom' ); $pageuntil = $wgRequest->getVal( 'pageuntil' ); $r = ''; if (!isset($pagefrom) &&!isset($pageuntil)) { $r .= $this->getSubcategorySection(); } if (!isset($subcatfrom) && !isset($subcatuntil)) { $r .= $this->getPagesSection(); }
...
Version: 1.17.x
Severity: enhancement