Kill r34826's unnecessary boolval() per yesterday's IRC discussion (thought vasilievv...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 15 May 2008 15:38:51 +0000 (15:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 15 May 2008 15:38:51 +0000 (15:38 +0000)
includes/Autopromote.php
includes/GlobalFunctions.php

index 2a159fe..bd13f55 100644 (file)
@@ -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;
                                        }
index 5ee4cf0..276e51b 100644 (file)
@@ -2602,7 +2602,3 @@ function wfGenerateToken( $salt = '' ) {
 
        return md5( mt_rand( 0, 0x7fffffff ) . $salt );
 }
-
-function boolval( $val ) {
-       return $val ? true : false;
-}