http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96601
Revision: 96601
Author: aaron
Date: 2011-09-08 19:28:03 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
Partial revert of r65898 (bug 27700). Callers should check 'create' and Title
will internally check the proper subpermission depending on the title namespace.
Modified Paths:
--------------
trunk/phase3/includes/upload/UploadBase.php
Modified: trunk/phase3/includes/upload/UploadBase.php
===================================================================
--- trunk/phase3/includes/upload/UploadBase.php 2011-09-08 19:26:13 UTC (rev
96600)
+++ trunk/phase3/includes/upload/UploadBase.php 2011-09-08 19:28:03 UTC (rev
96601)
@@ -478,7 +478,7 @@
$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();
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs