Update wasn't ever getting called
This commit is contained in:
parent
c3c30aa0ea
commit
6d5d0b3472
@ -325,17 +325,17 @@ class DesignsettingsAction extends AccountSettingsAction
|
||||
return;
|
||||
}
|
||||
|
||||
$design = User::getDesign();
|
||||
$design = $user->getDesign();
|
||||
|
||||
if (!isset($design)) {
|
||||
if (!empty($design)) {
|
||||
|
||||
$original = clone($design);
|
||||
|
||||
$original->backgroundcolor = $bgcolor->intValue();
|
||||
$original->contentcolor = $ccolor->intValue();
|
||||
$original->sidebarcolor = $sbcolor->intValue();
|
||||
$original->textcolor = $tcolor->intValue();
|
||||
$original->linkcolor = $lcolor->intValue();
|
||||
$design->backgroundcolor = $bgcolor->intValue();
|
||||
$design->contentcolor = $ccolor->intValue();
|
||||
$design->sidebarcolor = $sbcolor->intValue();
|
||||
$design->textcolor = $tcolor->intValue();
|
||||
$design->linkcolor = $lcolor->intValue();
|
||||
|
||||
$result = $design->update($original);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user