mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
MVC, use a relative file location in view_fetch_themed_filename() so we can point to our services in a different location. All in the quest for easier component based frontend development.
This commit is contained in:
parent
f3b484fd0c
commit
d3cc016e7b
@ -22,7 +22,7 @@ function view_fetch_themed_filename($url, $theme)
|
||||
"/"
|
||||
);
|
||||
foreach ($search_pattern as $pattern) {
|
||||
$filename = "/usr/local/opnsense/www{$pattern}{$url}";
|
||||
$filename = __DIR__ . "/../../../www{$pattern}{$url}";
|
||||
if (file_exists($filename)) {
|
||||
return str_replace("//", "/", "/ui{$pattern}{$url}");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user