Update layout.php
sestoner : admin-layout-fix
This commit is contained in:
		
							parent
							
								
									a55fbb5bd9
								
							
						
					
					
						commit
						e0f0b241ae
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1110,7 +1110,13 @@ class Layout extends \gp\admin\Addon\Install{
 | 
			
		|||
			$success = false;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		$this->SaveLayouts();
 | 
			
		||||
		if (!empty($_POST['default'])){
 | 
			
		||||
			$this->SaveLayouts(false);
 | 
			
		||||
			$this->curr_layout = $layout_id;
 | 
			
		||||
			$this->MakeDefault();
 | 
			
		||||
		}else{
 | 
			
		||||
			$this->SaveLayouts();
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue