]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/plugin.php
Show nickname if user has oldschool option enabled
[quix0rs-gnu-social.git] / lib / plugin.php
index 5acdc1c2ba5e076be788deb9206010767be1606a..94bb1e124a16570702ad0fa2b6777c744e3a4979 100644 (file)
@@ -144,6 +144,9 @@ class Plugin
                 // @fixme this will fail for things installed in local/plugins
                 // ... but then so will web links so far.
                 $path = INSTALLDIR . "/plugins/$name/locale";
+                if (!file_exists($path)) {
+                    $path = INSTALLDIR . "/local/plugins/$name/locale";
+                }
             }
             if (file_exists($path) && is_dir($path)) {
                 bindtextdomain($name, $path);
@@ -196,7 +199,7 @@ class Plugin
 
     static function staticPath($plugin, $relative)
     {
-        $isHTTPS = StatusNet::isHTTPS();
+        $isHTTPS = GNUsocial::isHTTPS();
 
         if ($isHTTPS) {
             $server = common_config('plugins', 'sslserver');