From 910292e4f666e6d07805a8ff9b162d82701db652 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 2 Mar 2008 21:51:58 +0000 Subject: [PATCH] * Fix comment in Title::getUserPermissionsErrors() and Title::getUserPermissionsErrorsInternal(), missing $user parameter * Remove unused global declaration of $wgUser in Title::getUserPermissionsErrors() --- includes/Title.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. */ -- 2.20.1