1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

pluginhost: allow loading user plugins from plugins.local

This commit is contained in:
Andrew Dolgov
2015-06-05 17:54:52 +03:00
parent c3dfc1bdb5
commit 7c0a2ab202
4 changed files with 26 additions and 3 deletions

View File

@@ -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;
}
?>