From d3cc016e7b1423e62bb0e2a6ac54b9e6571561cf Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 4 Mar 2018 17:25:55 +0100 Subject: [PATCH] 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. --- src/opnsense/mvc/app/config/services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/config/services.php b/src/opnsense/mvc/app/config/services.php index 82a4ebb26..53529e051 100644 --- a/src/opnsense/mvc/app/config/services.php +++ b/src/opnsense/mvc/app/config/services.php @@ -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}"); }