]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions2.php
pluginhost: allow loading user plugins from plugins.local
[tt-rss.git] / include / functions2.php
index 27b1933d0a0717c38b50b30b53c024c171660dcc..4f8a0523ba37cfddeffb37d98ce45f65cf297ce7 100644 (file)
                        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;
+       }
 ?>