]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'master' into 0.9.x
authorEvan Prodromou <evan@status.net>
Wed, 16 Feb 2011 18:56:55 +0000 (13:56 -0500)
committerEvan Prodromou <evan@status.net>
Wed, 16 Feb 2011 18:56:55 +0000 (13:56 -0500)
lib/plugin.php

index 1ccf23a0952d1bce36125a7c7e0ef7d0ab08ed01..0e8c0a742d92f4deb25a35a7da2bfc01f45d04ed 100644 (file)
@@ -162,6 +162,14 @@ class Plugin
             $path = common_config('site', 'path') . '/plugins/';
         }
 
+        if ($path[strlen($path)-1] != '/') {
+            $path .= '/';
+        }
+
+        if ($path[0] != '/') {
+            $path = '/'.$path;
+        }
+
         $protocol = ($isHTTPS) ? 'https' : 'http';
 
         return $protocol.'://'.$server.$path.$plugin.'/'.$relative;