...
|
...
|
@@ -143,12 +143,12 @@ class View{
|
143
|
143
|
|
144
|
144
|
foreach($dirs as $dir){
|
145
|
145
|
// check if the file exists
|
146
|
|
- if(is_file($found = $dir.($action!=""&&$view!=""?DIRECTORY_SEPARATOR:"").$view)){
|
|
146
|
+ if(is_file($found = str_replace('\\', DIRECTORY_SEPARATOR, $dir.($action!=""&&$view!=""?DIRECTORY_SEPARATOR:"").$view))){
|
147
|
147
|
return $found;
|
148
|
148
|
}
|
149
|
149
|
// try to add extension and check again
|
150
|
150
|
else foreach($this->_L3->viewEngines->getRegisteredFileExtensions() as $registeredExtension){
|
151
|
|
- if(is_file($found = $dir.($action!=""&&$view!=""?DIRECTORY_SEPARATOR:"").$view.$registeredExtension)){
|
|
151
|
+ if(is_file($found = str_replace('\\', DIRECTORY_SEPARATOR, $dir.($action!=""&&$view!=""?DIRECTORY_SEPARATOR:"").$view.$registeredExtension))){
|
152
|
152
|
$this->viewFileExtension = $registeredExtension;
|
153
|
153
|
return $found;
|
154
|
154
|
}
|