Skip to content
Snippets Groups Projects
Commit 4e6b5e35 authored by alvaro's avatar alvaro
Browse files

Allowing (html) static files to be interpreted by Haanga

parent 40e54492
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,8 @@ class StaticModule extends abstractModule{ ...@@ -33,7 +33,8 @@ class StaticModule extends abstractModule{
echo "\n-------------------------------------------------\nIn ".$conf['static']['directory']."\n"; echo "\n-------------------------------------------------\nIn ".$conf['static']['directory']."\n";
echo "Static file $file\n-------------------------------------------------\n\n"; echo "Static file $file\n-------------------------------------------------\n\n";
} }
if($conf['static']['haanga']){ $htmlExtension = 'html';
if($conf['static']['haanga'] && substr_compare($file, $htmlExtension, -strlen($htmlExtension), strlen($htmlExtension)) === 0){
$lodspk['home'] = $conf['basedir']; $lodspk['home'] = $conf['basedir'];
$lodspk['baseUrl'] = $conf['basedir']; $lodspk['baseUrl'] = $conf['basedir'];
$lodspk['module'] = 'static'; $lodspk['module'] = 'static';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment