X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FCategoryViewer.php;h=2ceeed27958bd672414bdf17c1ac1744f04dea0b;hb=e2a7988178698b4369c7963d20610ee622db3ee7;hp=66079c0179a9f4b71f81f990fd2b8166e966c0e3;hpb=5efccbed2a8db2a2b210d6116bd608da01342030;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 66079c0179..2ceeed2795 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -329,7 +329,7 @@ class CategoryViewer extends ContextSource { 'category' => array( 'LEFT JOIN', array( 'cat_title = page_title', 'page_namespace' => NS_CATEGORY - )) + ) ) ) ); @@ -713,7 +713,7 @@ class CategoryViewer extends ContextSource { // quick due to the small number of entries. $totalcnt = $rescnt; $category = $this->cat; - wfGetDB( DB_MASTER )->onTransactionIdle( function () use ( $category ) { + DeferredUpdates::addCallableUpdate( function () use ( $category ) { $category->refreshCounts(); } ); } else {