X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fmain.inc;h=1f1078d59e2256b39ad3eb06da4566174d221cf4;hb=34bfbfad2dd0239174e03f7cce2b0bdcfa6a8a10;hp=ee7564785f0d8d020ad50668938d9279799a22c5;hpb=c2e4edb8bd1eb60893f042f562bf2b817f06fd81;p=fa-stable.git diff --git a/includes/main.inc b/includes/main.inc index ee756478..1f1078d5 100644 --- a/includes/main.inc +++ b/includes/main.inc @@ -326,11 +326,11 @@ function find_custom_file($rep) $extensions = $installed_extensions; foreach ($extensions as $ext) if (($ext['active'] && $ext['type'] == 'extension')) { - $local_path_to_root = $path = $path_to_root.'/'.$ext['path']; $file = $path.$rep; if (file_exists($file)) { set_include_path($path.PATH_SEPARATOR.get_include_path()); + $local_path_to_root = $path; return $file; } }