// @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);
. ' (' . get_class($this) . ' v' . $this->version() . ')';
}
- function onPluginVersion(&$versions)
+ function onPluginVersion(array &$versions)
{
$name = $this->name();
static function staticPath($plugin, $relative)
{
- $isHTTPS = StatusNet::isHTTPS();
+ $isHTTPS = GNUsocial::isHTTPS();
if ($isHTTPS) {
$server = common_config('plugins', 'sslserver');