Skip to content
Snippets Groups Projects
Commit 7bd49dee authored by alangrafu's avatar alangrafu
Browse files

Bug: use localUri instead of uri

parent cf85aeae
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ class StaticModule extends abstractModule{ ...@@ -10,7 +10,7 @@ class StaticModule extends abstractModule{
global $acceptContentType; global $acceptContentType;
global $endpoints; global $endpoints;
global $base; global $base;
$q = preg_replace('|^'.$conf['basedir'].'|', '', $uri); $q = preg_replace('|^'.$conf['basedir'].'|', '', $localUri);
if(sizeof($q)>0 && file_exists($conf['home'].$conf['static']['directory'].$q)){ if(sizeof($q)>0 && file_exists($conf['home'].$conf['static']['directory'].$q)){
return $q; return $q;
} }
......
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