Skip to content

Commit ec607be

Browse files
committed
refactor: remove variable
1 parent 3a70fb4 commit ec607be

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

system/View/View.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ public function render(string $view, ?array $options = null, ?bool $saveData = n
174174

175175
$fileExt = pathinfo($view, PATHINFO_EXTENSION);
176176
// allow Views as .html, .tpl, etc (from CI3)
177-
$realPath = empty($fileExt) ? $view . '.php' : $view;
177+
$this->renderVars['view'] = empty($fileExt) ? $view . '.php' : $view;
178178

179-
$this->renderVars['view'] = $realPath;
180179
$this->renderVars['options'] = $options ?? [];
181180

182181
// Was it cached?

0 commit comments

Comments
 (0)