Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -318,9 +318,9 @@ |
319 | 319 | return; |
320 | 320 | } |
321 | 321 | |
322 | | - $permErrors = $this->mTitle->getUserPermissionsErrors( 'edit', $wgUser); |
| 322 | + $permErrors = $this->mTitle->getUserPermissionsErrors('edit', $wgUser); |
323 | 323 | if( !$this->mTitle->exists() ) |
324 | | - $permErrors += $this->mTitle->getUserPermissionsErrors( 'create', $wgUser); |
| 324 | + $permErrors += array_diff( $this->mTitle->getUserPermissionsErrors('create', $wgUser), $permErrors ); |
325 | 325 | |
326 | 326 | # Ignore some permissions errors. |
327 | 327 | $remove = array(); |