X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRandomInCategory.php;h=14123a8be3e9a8bb57f339a853fa65354d2644e1;hb=b95a775c9855f7b7d781240e1062cc014957d703;hp=b8c7b0f9017500dddea21d2f665b3ff8b4e83874;hpb=b8af5d9485c3977d4ccea6a3ff2b28f535193237;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRandomInCategory.php b/includes/specials/SpecialRandomInCategory.php index b8c7b0f901..14123a8be3 100644 --- a/includes/specials/SpecialRandomInCategory.php +++ b/includes/specials/SpecialRandomInCategory.php @@ -87,7 +87,6 @@ class SpecialRandomInCategory extends SpecialPage { $this->setCategory( $cat ); } - if ( !$this->category && $categoryStr ) { $this->setHeaders(); $this->getOutput()->addWikiMsg( 'randomincategory-invalidcategory', @@ -132,7 +131,7 @@ class SpecialRandomInCategory extends SpecialPage { */ public function getRandomTitle() { // Convert to float, since we do math with the random number. - $rand = (float) wfRandom(); + $rand = (float)wfRandom(); $title = null; // Given that timestamps are rather unevenly distributed, we also