Avoid image table updates on file upload failure
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 18 Apr 2014 19:34:52 +0000 (12:34 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 18 Apr 2014 19:36:20 +0000 (12:36 -0700)
commit17480be012a9b0f331ff776832ddf865595f13e7
tree6c1119919a1616fd2ec634b8b7dc57ad6f6dafab
parent45a520101416231595c8171f2c05fa4d16492288
Avoid image table updates on file upload failure

* If the publish() call did not really do anything, then there is
  no use in saving the page and file DB records. Previously the
  user would get an error but the description page would be made.

bug: 64071
Change-Id: I1959f8c1ef33dbd1b238f6020117d2862d4b0fd3
includes/filerepo/file/LocalFile.php