Merge branch 'redironlogin' of http://git.gitorious.org/~evan/statusnet/evans-mainline into redironlogin
This commit is contained in:
commit
ef0e0116c2
@ -133,7 +133,7 @@ class LoginAction extends Action
|
|||||||
$url = common_get_returnto();
|
$url = common_get_returnto();
|
||||||
|
|
||||||
if (common_config('ssl', 'sometimes') && // mixed environment
|
if (common_config('ssl', 'sometimes') && // mixed environment
|
||||||
common_config('site', 'server') != common_config('site', 'sslserver')) {
|
0 != strcasecmp(common_config('site', 'server'), common_config('site', 'sslserver'))) {
|
||||||
$this->redirectFromSSL($user, $url, $this->boolean('rememberme'));
|
$this->redirectFromSSL($user, $url, $this->boolean('rememberme'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -260,8 +260,9 @@ class RegisterAction extends Action
|
|||||||
// Re-init language env in case it changed (not yet, but soon)
|
// Re-init language env in case it changed (not yet, but soon)
|
||||||
common_init_language();
|
common_init_language();
|
||||||
|
|
||||||
if (common_config('ssl', 'sometimes') && // mixed environment
|
if (common_config('site', 'ssl') == 'sometimes' && // mixed environment
|
||||||
common_config('site', 'server') != common_config('site', 'sslserver')) {
|
0 != strcasecmp(common_config('site', 'server'), common_config('site', 'sslserver'))) {
|
||||||
|
|
||||||
$url = common_local_url('all',
|
$url = common_local_url('all',
|
||||||
array('nickname' =>
|
array('nickname' =>
|
||||||
$user->nickname));
|
$user->nickname));
|
||||||
|
@ -170,7 +170,11 @@ class Status_network extends DB_DataObject
|
|||||||
|
|
||||||
$config['db']['database'] = "mysqli://$dbuser:$dbpass@$dbhost/$dbname";
|
$config['db']['database'] = "mysqli://$dbuser:$dbpass@$dbhost/$dbname";
|
||||||
|
|
||||||
$config['site']['name'] = $sn->sitename;
|
$config['site']['name'] = $sn->sitename;
|
||||||
|
|
||||||
|
if (!empty($sn->hostname)) {
|
||||||
|
$config['site']['server'] = $sn->hostname;
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($sn->theme)) {
|
if (!empty($sn->theme)) {
|
||||||
$config['site']['theme'] = $sn->theme;
|
$config['site']['theme'] = $sn->theme;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user