]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Show a background img in settings form
authorZach Copley <zach@controlyourself.ca>
Wed, 17 Jun 2009 05:57:28 +0000 (22:57 -0700)
committerZach Copley <zach@controlyourself.ca>
Wed, 17 Jun 2009 05:57:28 +0000 (22:57 -0700)
actions/designsettings.php

index 866d8aaeb7c267e80c367ee53c6c15b86c29984a..a97235e678f6662eecfd08358b9fab049a6d76ca 100644 (file)
@@ -105,6 +105,12 @@ class DesignsettingsAction extends AccountSettingsAction
         $this->elementEnd('li');
 
         $this->elementStart('li', array('id' => 'design_background-image_onoff'));
+
+        if (!empty($design->backgroundimage)) {
+            $this->element('img', array('src' =>
+                Design::url($design->backgroundimage)));
+        }
+
         $this->element('input', array('name' => 'design_background-image_onoff',
                                       'type' => 'radio',
                                       'id' => 'design_background-image_on',