]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update wasn't ever getting called
authorZach Copley <zach@controlyourself.ca>
Tue, 16 Jun 2009 07:56:32 +0000 (00:56 -0700)
committerZach Copley <zach@controlyourself.ca>
Tue, 16 Jun 2009 07:56:32 +0000 (00:56 -0700)
actions/designsettings.php

index b7f9cda987469569215866994f77c7e6446a2894..c5aa8c1d37446dc46b5775ca29e7c4eef26a90a3 100644 (file)
@@ -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);