Code standards
This commit is contained in:
		
					parent
					
						
							
								310d49b82a
							
						
					
				
			
			
				commit
				
					
						99a33b7335
					
				
			
		
					 2 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,6 @@ function randprof_init(App $a)
 | 
			
		|||
 | 
			
		||||
	if ($x) {
 | 
			
		||||
		$link = Contact::magicLink($x);
 | 
			
		||||
		// @TODO making the return of magicLink save to use either externalRedirect or internalRedirect
 | 
			
		||||
		$a->redirect($link);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2016,8 +2016,7 @@ class App
 | 
			
		|||
	 */
 | 
			
		||||
	public function redirect($toUrl)
 | 
			
		||||
	{
 | 
			
		||||
		if (filter_var($toUrl, FILTER_VALIDATE_URL))
 | 
			
		||||
		{
 | 
			
		||||
		if (filter_var($toUrl, FILTER_VALIDATE_URL)) {
 | 
			
		||||
			Core\System::externalRedirect($toUrl);
 | 
			
		||||
		} else {
 | 
			
		||||
			$this->internalRedirect($toUrl);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue