Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes

This commit is contained in:
Mikael Nordfeldth 2016-01-06 00:53:20 +01:00
commit 59d3bbe037
2 changed files with 2 additions and 1 deletions

View File

@ -822,6 +822,7 @@ class Profile extends Managed_DataObject
$notices = new Notice();
$notices->profile_id = $this->id;
$notices->verb = ActivityVerb::POST;
$cnt = (int) $notices->count('distinct id');
if (!empty($c)) {

View File

@ -414,7 +414,7 @@ class OpenIDPlugin extends Plugin
*/
function onRedirectToLogin($action, $user)
{
if (common_config('site', 'openid_only') || (!empty($user) && User_openid::hasOpenID($user->id))) {
if (common_config('site', 'openidonly') || (!empty($user) && User_openid::hasOpenID($user->id))) {
common_redirect(common_local_url('openidlogin'), 303);
}
return true;