forked from GNUsocial/gnu-social
		
	Merge branch 'redironlogin' of http://git.gitorious.org/~evan/statusnet/evans-mainline into redironlogin
This commit is contained in:
		@@ -133,7 +133,7 @@ class LoginAction extends Action
 | 
			
		||||
        $url = common_get_returnto();
 | 
			
		||||
 | 
			
		||||
        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'));
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -260,8 +260,9 @@ class RegisterAction extends Action
 | 
			
		||||
                // Re-init language env in case it changed (not yet, but soon)
 | 
			
		||||
                common_init_language();
 | 
			
		||||
 | 
			
		||||
                if (common_config('ssl', 'sometimes') && // mixed environment
 | 
			
		||||
                    common_config('site', 'server') != common_config('site', 'sslserver')) {
 | 
			
		||||
                if (common_config('site', 'ssl') == 'sometimes' && // mixed environment
 | 
			
		||||
                    0 != strcasecmp(common_config('site', 'server'), common_config('site', 'sslserver'))) {
 | 
			
		||||
 | 
			
		||||
                    $url = common_local_url('all',
 | 
			
		||||
                                            array('nickname' =>
 | 
			
		||||
                                                  $user->nickname));
 | 
			
		||||
 
 | 
			
		||||
@@ -170,7 +170,11 @@ class Status_network extends DB_DataObject
 | 
			
		||||
 | 
			
		||||
            $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)) {
 | 
			
		||||
                $config['site']['theme'] = $sn->theme;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user