diff options
author | Jeffery To <jeffery.to@gmail.com> | 2009-06-26 15:42:37 +0800 |
---|---|---|
committer | Jeffery To <jeffery.to@gmail.com> | 2009-06-26 15:42:37 +0800 |
commit | 71dc910a53eb2aba509c418e7ac0f8e9b94cba9a (patch) | |
tree | bf7299e5e55e69dc859a50df563e8ae59b56d4b4 /lib/designsettings.php | |
parent | 65f784120b45dc187e28313fa2c2dca2c976c150 (diff) | |
parent | 97ee517680979bf12e82eab99ecf943712fe97c9 (diff) |
Merge branch '0.8.x' into notice-search-no-results
Diffstat (limited to 'lib/designsettings.php')
-rw-r--r-- | lib/designsettings.php | 16 |
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) { |