summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/init.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php
index 4289e30a9..aa0219f43 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -257,6 +257,9 @@ function getBaseURL($abs=false){
//handle script in lib/exe dir
$dir = preg_replace('!lib/exe/$!','',$dir);
+ //handle script in lib/plugins dir
+ $dir = preg_replace('!lib/plugins/.*$!','',$dir);
+
//finish here for relative URLs
if(!$abs) return $dir;