forked from hrehfeld/QuakeInjector
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tentative support for using cached database.xml when source is offline
Rearranged the code a bit so that the local database.xml file (if any) is not nuked when trying to download a new one. Changes look promising, but not ready to merge yet for a few reasons: - Since Quaddicted is offline, I can't easily test the "download success" case to make sure that it still works. There are ways around that which I can do if necessary (i.e. host a database.xml file on some other webserver). - I don't have a complete current database.xml file to test as the local/cached version. I've been using a truncated database.xml that I manually repaired. - Currently the code will just silently revert to using the cached copy if the download fails. It would be nice to pop a warning to tell the user that this is going on. Ideally someone else can help me with the best way to do that. :-)
- Loading branch information
1 parent
5897b7e
commit c2fcb07
Showing
1 changed file
with
61 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters