summaryrefslogtreecommitdiff
path: root/include/functions2.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions2.php')
-rw-r--r--include/functions2.php8
1 files changed, 8 insertions, 0 deletions
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;
+ }
?>