diff options
author | Alex Mayer <magictrick4906@aim.com> | 2012-08-15 12:16:01 -0400 |
---|---|---|
committer | Torne Wuff <torne@wolfpuppy.org.uk> | 2012-08-15 19:03:46 +0200 |
commit | 8146f3587ebe467ebdf32d6ba90990ad7086b7ba (patch) | |
tree | f2226e4fedb20b71c24f89ccb3e2a317dbd7060a | |
parent | e128b7e4e09162a9b88a2dc4200504c2e722444a (diff) | |
download | themesite-8146f3587ebe467ebdf32d6ba90990ad7086b7ba.tar.gz themesite-8146f3587ebe467ebdf32d6ba90990ad7086b7ba.zip |
Fixed error with theme generator
Theme page was adding blank/missing images when you hover over them.
This was do to a bad check to see if a varriable($sshot_2, $sshot_3) were empty.
They were both being checked against $sshot_1 then being filled with a number "2-" and "3-" respectivley.
This is what was causing the blank image to show on hover.
Change-Id: I6c9f62f1ff73222f3adb7d317f2a397d3f84528a
Reviewed-on: http://gerrit.rockbox.org/309
Reviewed-by: Michael Rodger <m.rodger@sae.edu>
Reviewed-by: Torne Wuff <torne@wolfpuppy.org.uk>
-rw-r--r-- | private/themesite.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/private/themesite.class.php b/private/themesite.class.php index 87b0a60..71e2bb5 100644 --- a/private/themesite.class.php +++ b/private/themesite.class.php @@ -640,8 +640,8 @@ END; $sshot_wps['name'] = empty($sshot_wps['name']) ? '' : 'wps-'.$sshot_wps['name']; $sshot_menu['name'] = empty($sshot_menu['name']) ? '' : 'menu-'.$sshot_menu['name']; $sshot_1['name'] = empty($sshot_1['name']) ? '' : '1-'.$sshot_1['name']; - $sshot_2['name'] = empty($sshot_1['name']) ? '' : '2-'.$sshot_2['name']; - $sshot_3['name'] = empty($sshot_1['name']) ? '' : '3-'.$sshot_3['name']; + $sshot_2['name'] = empty($sshot_2['name']) ? '' : '2-'.$sshot_2['name']; + $sshot_3['name'] = empty($sshot_3['name']) ? '' : '3-'.$sshot_3['name']; /* Start moving files in place */ $uploads = array($zipfile, $sshot_wps, $sshot_menu,$sshot_1,$sshot_2,$sshot_3); |