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:
@@ -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;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user