Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions system/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
$this->renderVars['file'] = $this->viewPath . $this->renderVars['view'];

if (str_contains($this->renderVars['view'], '\\')) {
$overrideFolder = $this->config->appOverridesFolder !== ''
? trim($this->config->appOverridesFolder, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR
$appOverridesFolder = $this->config->appOverridesFolder ?? 'overrides';

$overrideFolder = $appOverridesFolder !== ''
? trim($appOverridesFolder, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR
: '';

$this->renderVars['file'] = $this->viewPath
Expand Down
1 change: 1 addition & 0 deletions user_guide_src/source/changelogs/v4.7.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Bugs Fixed
- **Model:** Fixed a bug where ``BaseModel::updateBatch()`` threw an exception when ``updateOnlyChanged`` was ``true`` and the index field value did not change.
- **Session:** Fixed a bug in ``MemcachedHandler`` where the constructor incorrectly threw an exception when ``savePath`` was not empty.
- **Toolbar:** Fixed a bug where the standalone toolbar page loaded from ``?debugbar_time=...`` was not interactive.
- **View:** Fixed a bug where ``View`` would throw an error if the ``appOverridesFolder`` config property was not defined.

See the repo's
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_
Expand Down
Loading