StatusNet class renamed GNUsocial

also added backward compatible StatusNet class for the two calls I know
third party plugins use, isHTTPS and getActivePlugins
This commit is contained in:
Mikael Nordfeldth
2015-02-27 12:44:15 +01:00
parent f25e5e3860
commit 8fac7a9f6c
48 changed files with 520 additions and 502 deletions

View File

@@ -1260,7 +1260,7 @@ function common_local_url($action, $args=null, $params=null, $fragment=null, $ad
$path = $r->build($action, $args, $params, $fragment);
$ssl = common_config('site', 'ssl') === 'always'
|| StatusNet::isHTTPS()
|| GNUsocial::isHTTPS()
|| common_is_sensitive($action);
if (common_config('site','fancy')) {
@@ -1304,7 +1304,7 @@ function common_path($relative, $ssl=false, $addSession=true)
$pathpart = (common_config('site', 'path')) ? common_config('site', 'path')."/" : '';
if (($ssl && (common_config('site', 'ssl') === 'sometimes'))
|| StatusNet::isHTTPS()
|| GNUsocial::isHTTPS()
|| common_config('site', 'ssl') === 'always') {
$proto = 'https';
if (is_string(common_config('site', 'sslserver')) &&