Skip to content

Commit 412e163

Browse files
committed
Merge branch 'develop' of github.com:bcit-ci/CodeIgniter4 into develop
2 parents df47d32 + 5c0ce8a commit 412e163

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

system/View/Parser.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ public function render(string $view, array $options = null, $saveData = null): s
129129
$saveData = $this->config->saveData;
130130
}
131131

132-
$view = str_replace('.php', '', $view) . '.php';
132+
$view = str_replace('.php', '', $view);
133133

134134
// Was it cached?
135135
if (isset($options['cache']))
136136
{
137-
$cacheName = $options['cache_name'] ?: str_replace('.php', '', $view);
137+
$cacheName = $options['cache_name'] ?: $view;
138138

139139
if ($output = cache($cacheName))
140140
{
@@ -143,6 +143,7 @@ public function render(string $view, array $options = null, $saveData = null): s
143143
}
144144
}
145145

146+
$view = $view . '.php';
146147
$file = $this->viewPath . $view;
147148

148149
if ( ! file_exists($file))

0 commit comments

Comments
 (0)