We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b982fc2 commit 482732fCopy full SHA for 482732f
MX/Loader.php
@@ -402,14 +402,16 @@ public function _ci_load($_ci_data)
402
extract($_ci_data);
403
404
$_is_view = false;
405
- $ext = 'php';
+ $ext = (!empty(config_item('view')['view_engine']))
406
+ ? ltrim(config_item('plate_extension'), '.')
407
+ : 'php';
408
409
if (isset($_ci_view)) {
410
$_ci_path = '';
411
$_is_view = true;
412
413
/* add file extension if not provided */
- $_ci_file = (pathinfo($_ci_view, PATHINFO_EXTENSION)) ? $_ci_view : $_ci_view . EXT;
414
+ $_ci_file = (pathinfo($_ci_view, PATHINFO_EXTENSION)) ? $_ci_view : $_ci_view .'.'. $ext;
415
416
foreach ($this->_ci_view_paths as $path => $cascade) {
417
if (file_exists($view = $path . $_ci_file)) {
0 commit comments