From: Aaron Schulz Date: Thu, 8 Sep 2011 19:28:03 +0000 (+0000) Subject: Partial revert of r65898 (bug 27700). Callers should check 'create' and Title will... X-Git-Tag: 1.31.0-rc.0~27783 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=15ae38d52f3ed4448d554351010c458ceb8fed60;p=lhc%2Fweb%2Fwiklou.git Partial revert of r65898 (bug 27700). Callers should check 'create' and Title will internally check the proper subpermission depending on the title namespace. --- diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 443b7c9ea5..6fa72f8d3d 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -478,7 +478,7 @@ abstract class UploadBase { $permErrors = $nt->getUserPermissionsErrors( 'edit', $user ); $permErrorsUpload = $nt->getUserPermissionsErrors( 'upload', $user ); if ( !$nt->exists() ) { - $permErrorsCreate = $nt->getUserPermissionsErrors( 'createpage', $user ); + $permErrorsCreate = $nt->getUserPermissionsErrors( 'create', $user ); } else { $permErrorsCreate = array(); }