From: Alexandre Emsenhuber Date: Sun, 2 Mar 2008 21:51:58 +0000 (+0000) Subject: * Fix comment in Title::getUserPermissionsErrors() and Title::getUserPermissionsError... X-Git-Tag: 1.31.0-rc.0~49282 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=910292e4f666e6d07805a8ff9b162d82701db652;p=lhc%2Fweb%2Fwiklou.git * Fix comment in Title::getUserPermissionsErrors() and Title::getUserPermissionsErrorsInternal(), missing $user parameter * Remove unused global declaration of $wgUser in Title::getUserPermissionsErrors() --- diff --git a/includes/Title.php b/includes/Title.php index 6f94c8807b..ea2b197342 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1037,6 +1037,7 @@ class Title { * FIXME: This *does not* check throttles (User::pingLimiter()). * * @param string $action action that permission needs to be checked for + * @param User $user user to check * @param bool $doExpensiveQueries Set this to false to avoid doing unnecessary queries. * @return array Array of arrays of the arguments to wfMsg to explain permissions problems. */ @@ -1045,7 +1046,7 @@ class Title { global $wgContLang; global $wgLang; - global $wgEmailConfirmToEdit, $wgUser; + global $wgEmailConfirmToEdit; if ( $wgEmailConfirmToEdit && !$user->isEmailConfirmed() ) { $errors[] = array( 'confirmedittext' ); @@ -1108,6 +1109,7 @@ class Title { * checks on wfReadOnly() and blocks) * * @param string $action action that permission needs to be checked for + * @param User $user user to check * @param bool $doExpensiveQueries Set this to false to avoid doing unnecessary queries. * @return array Array of arrays of the arguments to wfMsg to explain permissions problems. */