Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -913,7 +913,11 @@ |
914 | 914 | } else { |
915 | 915 | // New file; create the description page. |
916 | 916 | // There's already a log entry, so don't make a second RC entry |
917 | | - $article->doEdit( $pageText, $comment, EDIT_NEW | EDIT_SUPPRESS_RC ); |
| 917 | + $result = $article->doEdit( $pageText, $comment, EDIT_NEW | EDIT_SUPPRESS_RC ); |
| 918 | + if ( !$result->isOK() ) { |
| 919 | + $dbw->rollback( __METHOD__ ); |
| 920 | + return false; |
| 921 | + } |
918 | 922 | } |
919 | 923 | |
920 | 924 | # Hooks, hooks, the magic of hooks... |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -563,6 +563,8 @@ |
564 | 564 | * (bug 16726) siprop=namespacealiases should also list localized aliases |
565 | 565 | * (bug 16730) Added apprfiltercascade parameter to list=allpages to filter |
566 | 566 | cascade-protected pages |
| 567 | +* (bug 15430) Cancel the upload process and rollback database changes in case |
| 568 | + no article associated with the file can be created |
567 | 569 | |
568 | 570 | === Languages updated in 1.14 === |
569 | 571 | |