Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(views): locations specified in /engine/views.php are modifiable
When simplecache is on, all view locations are loaded from cache, so no dir scanning/configuration should be done. In elgg_views_boot, we'd forgotten to scan engine/views.php based on this condition. This moves the scanning to the top and into the system cache conditional block. This also gets rid of duplicated code that causes a double scan of the core view files. Fixes #9308
- Loading branch information
Showing
2 changed files
with
12 additions
and
14 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
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