Merge remote branch 'statusnet/0.9.x' into 1.0.x

This commit is contained in:
Craig Andrews
2010-10-14 15:27:17 -04:00
41 changed files with 2145 additions and 1079 deletions

View File

@@ -169,7 +169,6 @@ class StatusNet
return $sites;
}
/**
* Fire initialization events for all instantiated plugins.
*/
@@ -225,7 +224,7 @@ class StatusNet
{
return self::$is_api;
}
public function setApi($mode)
{
self::$is_api = $mode;
@@ -387,6 +386,18 @@ class StatusNet
}
}
}
/**
* Are we running from the web with HTTPS?
*
* @return boolean true if we're running with HTTPS; else false
*/
static function isHTTPS()
{
// There are some exceptions to this; add them here!
return $_SERVER['HTTPS'];
}
}
class NoConfigException extends Exception