Project

General

Profile

« Previous | Next » 

Revision 1728

Added by Dietmar about 12 years ago

! change redirect logic for registered pages

View differences:

class.frontend.php
190 190
			// Page keywords
191 191
			$this->page_keywords=$this->page['keywords'];
192 192
			// Page link
193

  
194
            $bCanRedirect = ($this->visibility == 'registered' || $this->visibility == 'privat');
195

  
193 196
			$this->link=$this->page_link($this->page['link']);
197

  
194 198
			$_SESSION['PAGE_ID'] = $this->page_id;
195
            $bCanRedirect = ($this->visibility == 'registered' || $this->visibility == 'privat');
199

  
196 200
			$_SESSION['HTTP_REFERER'] = $bCanRedirect != true ? $this->link : WB_URL;
201
            $_SESSION['HTTP_REFERER'] = !$this->is_authenticated() ? $this->link : $_SESSION['HTTP_REFERER'];
197 202

  
198 203
		// End code to set details as either variables of constants
199 204
		}

Also available in: Unified diff