http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84573
Revision: 84573
Author: reedy
Date: 2011-03-22 22:22:39 +0000 (Tue, 22 Mar 2011)
Log Message:
-----------
Followup r65898, fix inverse logic for title existence
Related to bug 27470 and bug 28166
Modified Paths:
--------------
trunk/phase3/includes/upload/UploadBase.php
Modified: trunk/phase3/includes/upload/UploadBase.php
===================================================================
--- trunk/phase3/includes/upload/UploadBase.php 2011-03-22 22:07:53 UTC (rev
84572)
+++ trunk/phase3/includes/upload/UploadBase.php 2011-03-22 22:22:39 UTC (rev
84573)
@@ -460,7 +460,7 @@
}
$permErrors = $nt->getUserPermissionsErrors( 'edit', $user );
$permErrorsUpload = $nt->getUserPermissionsErrors( 'upload',
$user );
- if ( $nt->exists() ) {
+ if ( !$nt->exists() ) {
$permErrorsCreate = $nt->getUserPermissionsErrors(
'createpage', $user );
} else {
$permErrorsCreate = array();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs