X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategory.php;h=3a21e256c782ceb7aa089e6210ea1871165ff2e1;hb=a7056e3c695c2fdf304fd5c8cf7a92baacc8836c;hp=2521a65a4a494b27e4be3104b004f47c0404c0ca;hpb=72bc1e8cf87ec368227fdae648ab7e5037a55bcf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Category.php b/includes/Category.php index 2521a65a4a..3a21e256c7 100644 --- a/includes/Category.php +++ b/includes/Category.php @@ -60,7 +60,6 @@ class Category { return true; } - $dbr = wfGetDB( DB_SLAVE ); $row = $dbr->selectRow( 'category', @@ -69,7 +68,6 @@ class Category { __METHOD__ ); - if ( !$row ) { # Okay, there were no contents. Nothing to initialize. if ( $this->mTitle ) { @@ -281,7 +279,6 @@ class Category { ) ); - return $result; } @@ -314,7 +311,6 @@ class Category { } } - $dbw = wfGetDB( DB_MASTER ); $dbw->startAtomic( __METHOD__ ); @@ -358,7 +354,6 @@ class Category { ); $dbw->endAtomic( __METHOD__ ); - # Now we should update our local counts. $this->mPages = $result->pages; $this->mSubcats = $result->subcats;