From: Brion Vibber Date: Thu, 15 May 2008 15:38:51 +0000 (+0000) Subject: Kill r34826's unnecessary boolval() per yesterday's IRC discussion (thought vasilievv... X-Git-Tag: 1.31.0-rc.0~47614 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=ff4b2c0342ee20880077dd303feabf02ed6dd2d9;p=lhc%2Fweb%2Fwiklou.git Kill r34826's unnecessary boolval() per yesterday's IRC discussion (thought vasilievv was going to revert himself, but guess not :D) --- diff --git a/includes/Autopromote.php b/includes/Autopromote.php index 2a159fe941..bd13f55a0c 100644 --- a/includes/Autopromote.php +++ b/includes/Autopromote.php @@ -87,7 +87,7 @@ class Autopromote { if( User::isValidEmailAddr( $user->getEmail() ) ) { global $wgEmailAuthentication; if( $wgEmailAuthentication ) { - return boolval( $user->getEmailAuthenticationTimestamp() ); + return (bool)$user->getEmailAuthenticationTimestamp(); } else { return true; } diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 5ee4cf09b9..276e51b8d9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2602,7 +2602,3 @@ function wfGenerateToken( $salt = '' ) { return md5( mt_rand( 0, 0x7fffffff ) . $salt ); } - -function boolval( $val ) { - return $val ? true : false; -}