X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoryViewer.php;h=9d692d71b3bd53c708c9ff0e244529ecb96783b2;hb=c1e6d8722083b5fee202e7651a2d7c51e696f481;hp=31369b01876ba3b52c5f5446cc0ad23ca4c17a36;hpb=b550816009a8f71d3c48ab31ac5523be4aa88e66;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 31369b0187..9d692d71b3 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -108,7 +108,6 @@ class CategoryViewer extends ContextSource { * @return string HTML output */ public function getHTML() { - $this->showGallery = $this->getConfig()->get( 'CategoryMagicGallery' ) && !$this->getOutput()->mNoGallery; @@ -740,10 +739,7 @@ class CategoryViewer extends ContextSource { // to refresh the incorrect category table entry -- which should be // quick due to the small number of entries. $totalcnt = $rescnt; - $category = $this->cat; - DeferredUpdates::addCallableUpdate( function () use ( $category ) { - $category->refreshCounts(); - } ); + DeferredUpdates::addCallableUpdate( [ $this->cat, 'refreshCounts' ] ); } else { // Case 3: hopeless. Don't give a total count at all. // Messages: category-subcat-count-limited, category-article-count-limited,