mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-21 21:59:12 +01:00
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