Skip to content

Commit a64d658

Browse files
datamwebmichalsn
andauthored
Update system/View/View.php
Co-authored-by: Michal Sniatala <[email protected]>
1 parent 014ed47 commit a64d658

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

system/View/View.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,6 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
201201

202202
$this->renderVars['file'] = $this->viewPath . $this->renderVars['view'];
203203

204-
// Check for overridden namespaced view in app/Views
205-
if (! is_file($this->renderVars['file'])) {
206-
// Normalize directory separators
207-
$path = str_replace('\\', DIRECTORY_SEPARATOR, $this->renderVars['view']);
208-
209-
if (is_file($this->viewPath . $path)) {
210-
$this->renderVars['file'] = $this->viewPath . $path;
211-
}
212-
}
213204
if (str_contains($this->renderVars['view'], '\\')) {
214205
$this->renderVars['file'] = $this->viewPath . ltrim(str_replace('\\', DIRECTORY_SEPARATOR, $this->renderVars['view']), DIRECTORY_SEPARATOR);
215206
} else {

0 commit comments

Comments
 (0)