X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoryViewer.php;h=7086a48b776e0f27cc75a622d7ee28911573d7df;hb=e7ea585d7f0f404230b4d49c37f40db81ebcaa09;hp=31369b01876ba3b52c5f5446cc0ad23ca4c17a36;hpb=4cb9c1a24bde6e29c5e8f05c7cd1de54ffdd342a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 31369b0187..7086a48b77 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -740,10 +740,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,