Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Github issue: #412
What does this Pull Request do?
Removes the requirement of a
SYSTEM
section of theconfig.ini
What's new?
mik
required you to have theSYSTEM
section just in case your timezone was not set. But conceivably never checked it, it also parsed the settings file twice.This uses the existing array of settings and only checks for SYSTEM if we need it.
How should this be tested?
I'm going to suggest that if tests run before and after this PR with the same count you should be fine. However my PHPUnit is not letting me run existing tests under PHP 7
But you could try running
mik
without aSYSTEM
section in yourconfig.ini
and you should (depending on your PHP installation) get the PHP timezone or 'America/Vancouver' 😄To help reviewers test your work:
Indicate whether your work requires a smoke test or is covered by PHPUnit tests (see CONTRIBUTING.md for more information).
If your work is covered by PHPUnit tests, indicate how many successful tests and assertions the reviewer should see when they run your tests.
If your work requires a smoke test, provide sample configuration files and data for reviewers.
Be as detailed as possible.
Good testing instructions and sample confiruation files/data help get your PR completed faster.
Should be covered by existing tests, but again I haven't been able to run them. There is no new functionality added in here, just a different way of achieving the same thing.
Additional Notes
Any additional information that you think would be helpful when reviewing this PR.
Example:
Interested parties