Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -330,7 +330,9 @@ |
331 | 331 | $permErrors = $this->getEditPermissionErrors(); |
332 | 332 | if ( $permErrors ) { |
333 | 333 | wfDebug( __METHOD__ . ": User can't edit\n" ); |
334 | | - $this->readOnlyPage( $this->getContent( false ), true, $permErrors, 'edit' ); |
| 334 | + $content = $this->getContent( null ); |
| 335 | + $content = $content === '' ? null : $content; |
| 336 | + $this->readOnlyPage( $content, true, $permErrors, 'edit' ); |
335 | 337 | wfProfileOut( __METHOD__ ); |
336 | 338 | return; |
337 | 339 | } else { |
— | — | @@ -1173,7 +1175,7 @@ |
1174 | 1176 | * parameter; will be called during form output |
1175 | 1177 | * near the top, for captchas and the like. |
1176 | 1178 | */ |
1177 | | - function showEditForm( $formCallback=null ) { |
| 1179 | + function showEditForm( $formCallback = null ) { |
1178 | 1180 | global $wgOut, $wgUser, $wgTitle; |
1179 | 1181 | |
1180 | 1182 | # If $wgTitle is null, that means we're in API mode. |