summaryrefslogtreecommitdiff
path: root/lib/designsettings.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-24 14:13:42 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-24 14:13:42 -0700
commit07486089d8ce2e27e7bef9d536bd78e701103cab (patch)
tree58bb3b49858290c67c7a0c8cd59367c1b81ce055 /lib/designsettings.php
parenta9bbf29ca6741437f7c27f7a7757b4969d33d279 (diff)
parentdfac8e8cd42c8c77a1cfd70b7e6aebd567252fb8 (diff)
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
Diffstat (limited to 'lib/designsettings.php')
-rw-r--r--lib/designsettings.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/designsettings.php b/lib/designsettings.php
index 6aa6bb2f1..9650679ac 100644
--- a/lib/designsettings.php
+++ b/lib/designsettings.php
@@ -132,13 +132,13 @@ class DesignSettingsAction extends AccountSettingsAction
_('Off'));
$this->element('p', 'form_guide', _('Turn background image on or off.'));
$this->elementEnd('li');
- }
- $this->elementStart('li');
- $this->checkbox('design_background-image_repeat',
- _('Tile background image'),
- ($design->disposition & BACKGROUND_TILE) ? true : false );
- $this->elementEnd('li');
+ $this->elementStart('li');
+ $this->checkbox('design_background-image_repeat',
+ _('Tile background image'),
+ ($design->disposition & BACKGROUND_TILE) ? true : false );
+ $this->elementEnd('li');
+ }
$this->elementEnd('ul');
$this->elementEnd('fieldset');
@@ -388,7 +388,11 @@ class DesignSettingsAction extends AccountSettingsAction
$original = clone($design);
$design->backgroundimage = $filename;
+
+ // default to on, no tile
+
$design->setDisposition(true, false, false);
+
$result = $design->update($original);
if ($result === false) {