Old hooks superseded by new hooks API.
[fa-stable.git] / includes / main.inc
index ee7564785f0d8d020ad50668938d9279799a22c5..1f1078d59e2256b39ad3eb06da4566174d221cf4 100644 (file)
@@ -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;
                                }
                        }