Skip to content

Commit

Permalink
Update to fix view PATH bug
Browse files Browse the repository at this point in the history
  • Loading branch information
piece601 committed Mar 23, 2015
1 parent c11cef7 commit 24c0545
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions application/controllers/Pitisan.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ protected function _view_creator($params)
{
$data = '';
foreach ($params as $key => $value) {
$data .= "<?php require_once PITISANPATH.'views/".
str_replace('.','/', $value).
".php' ?>\n";
$data .= "<?php require_once '".str_replace('.','/', $value).".php' ?>\n";
}
return $data;
}
Expand Down

0 comments on commit 24c0545

Please sign in to comment.