Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -2602,7 +2602,3 @@ |
2603 | 2603 | |
2604 | 2604 | return md5( mt_rand( 0, 0x7fffffff ) . $salt ); |
2605 | 2605 | } |
2606 | | - |
2607 | | -function boolval( $val ) { |
2608 | | - return $val ? true : false; |
2609 | | -} |
Index: trunk/phase3/includes/Autopromote.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | if( User::isValidEmailAddr( $user->getEmail() ) ) { |
89 | 89 | global $wgEmailAuthentication; |
90 | 90 | if( $wgEmailAuthentication ) { |
91 | | - return boolval( $user->getEmailAuthenticationTimestamp() ); |
| 91 | + return (bool)$user->getEmailAuthenticationTimestamp(); |
92 | 92 | } else { |
93 | 93 | return true; |
94 | 94 | } |