Commit graph

24 commits

Author SHA1 Message Date
Sam Reed
b18ea7dee2 Normalise casing of getArticleID used in core 2012-03-11 18:54:55 +00:00
Aaron Schulz
286abc08bd Disable file locking for thumbnail purging just as it already is with creation/updates (for performance). 2012-03-09 01:18:32 +00:00
Tim Starling
86ec766e19 Fix for r113312: explain the bug without the use of commented-out code 2012-03-07 23:00:42 +00:00
Aaron Schulz
cb93e4c51d [FileRepo]
* Made upload() explicitly check $status->successCount rather than isOk() as FileRepo::publish() gives fatal statuses where it used to only give warnings. This way, failed uploads still displace the current image DB row to oldimage rather than do nothing and have the same image row point to a new file (which can cause mismatched metadata).
* Disabled exception about invalid oi_archive_name. This makes things more broken in that when people get this an error on upload (which happens when the FS has no current file but the DB does), the new file is added as the current version in the FS but the DB is unchanged. Thus, the metadata can be mismatched.
2012-03-07 22:46:47 +00:00
Sam Reed
c47f83a4d4 More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
Antoine Musso
73247df204 Remove backslash from @return types
Ping r111103
2012-02-13 16:35:59 +00:00
Sam Reed
c052fc3b7b Documentation followups from lastnight 2012-02-10 15:37:33 +00:00
Sam Reed
76246b9bf5 More return documentation 2012-02-09 21:33:27 +00:00
Sam Reed
7b25f8231f Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
2012-02-09 19:30:01 +00:00
Sam Reed
e1d83d5721 Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
2012-02-09 18:01:54 +00:00
Antoine Musso
394c8b5234 enhance filerepo doc structure 2012-02-08 15:51:16 +00:00
Alexandre Emsenhuber
f0faee8ae9 Pass the user doing the upload to WikiPage::doEdit() 2011-12-27 15:15:38 +00:00
Aaron Schulz
aa3befb2e0 In LocalFile:
* Removed bogus rmdir() call.
* Added lock() calls to upgradeRow()/getSha1().
* Use FileRepo getFileSha1() in getSha1() rather than via FSFile.
* Made purgeThumbList()/migrateThumbFile() use FileRepo::cleanupBatch().
* A few other minor cleanups.
* w/s cleanup in recordUpload2().
In FSRepo:
* Removed deleted zone config code from constructor; useless since r107028.
In FileBackend:
* Make sure 'latest' param gets passed through via $params for some functions.
* Cleaned up doMoveInternal() to use *_Internal() functions.
2011-12-26 23:35:40 +00:00
Aaron Schulz
b9efeb2cbc FU r106752: fixed call to bogus function in LocalFile::getSha1() 2011-12-24 00:19:01 +00:00
Aaron Schulz
14863b9aa5 Cleaned up some references to FSRepo in code and comments. This should have no noticeable functional changes. 2011-12-20 19:25:23 +00:00
Brian Wolff
34791773f8 follow-up r98710/r104410. I personally think that forRefresh is confusing, since a purge is always in essence a "refresh"ing operation. change it to forThumbRefresh. 2011-12-20 06:48:05 +00:00
Aaron Schulz
5275f9b097 Merged FileBackend branch. Manually avoiding merging the many prop-only changes SVN likes to sprinkle in (easy to spot from the change list). Did not add SwiftFileBackend.php as it still is in development. 2011-12-20 03:52:06 +00:00
Antoine Musso
c0dd74a16f purgeThumbList debug message is now a oneliner 2011-12-08 12:51:53 +00:00
Roan Kattouw
cfab36dd59 Revert r105140 temporarily. The exception is thrown while running the parser tests (at least from Jenkins, haven't tried locally), which completely breaks the test suite and renders Jenkins useless. Feel free to reapply once the cause of the oi_archive_name bug is fixed and committing this won't cause exceptions to be thrown in Jenkins's face. 2011-12-05 07:03:21 +00:00
Aaron Schulz
6cc931502f Added file old version name sanity check to recordUpload2() 2011-12-04 23:34:24 +00:00
Aaron Schulz
330758c5bc Fix r104410: Added default value for $options to purgeThumbnails(), not sure how this was lost in the patch 2011-11-28 09:03:39 +00:00
Aaron Schulz
88f9a3016c FU r104410: don't even bother calling filterThumbnailPurgeList() if 'forRefresh' isn't set to be safe 2011-11-28 08:57:46 +00:00
Aaron Schulz
b9fe0b2fbf Restored r98710 but with a 'forRefresh' option (not used yet) 2011-11-28 08:53:03 +00:00
Aaron Schulz
ef75030835 Moved File classes to filerepo/file (as well as ArchivedFile) 2011-11-16 22:55:48 +00:00
Renamed from includes/filerepo/LocalFile.php (Browse further)