From 7c0a2ab2029b98086f02da80adf6a7ebc303fd6f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 5 Jun 2015 17:54:52 +0300 Subject: pluginhost: allow loading user plugins from plugins.local --- include/functions2.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/functions2.php') diff --git a/include/functions2.php b/include/functions2.php index 27b1933d0..4f8a0523b 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -2471,4 +2471,12 @@ array("code" => $code, "message" => $message))); } + + function abs_to_rel_path($dir) { + $tmp = str_replace(dirname(__DIR__), "", $dir); + + if (strlen($tmp) > 0 && substr($tmp, 0, 1) == "/") $tmp = substr($tmp, 1); + + return $tmp; + } ?> -- cgit v1.2.3-54-g00ecf