Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

first uploaded image becomes gallery thumbnail

  • Loading branch information...
commit 5f4f53957ab65d8b9d2bbebc42af963f279ecdd0 1 parent 2272f6d
tamlyn authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 includes/admin.class.php
View
6 includes/admin.class.php
@@ -6,7 +6,7 @@
* @package singapore
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License
* @copyright (c)2003-2005 Tamlyn Rhodes
- * @version $Id: admin.class.php,v 1.62 2006/06/07 15:49:54 tamlyn Exp $
+ * @version $Id: admin.class.php,v 1.63 2006/06/26 21:08:23 tamlyn Exp $
*/
define("SG_ADMIN", 1024);
@@ -1262,6 +1262,10 @@ function addImage()
$this->gallery->images[] =& $img;
+ //set as gallery thumbnail?
+ if($this->gallery->imageCount()==1)
+ $this->gallery->filename = $img->id;
+
if($this->io->putGallery($this->gallery)) {
$this->selectImage($image);
return $this->pushMessage($this->translator->_g("Image added", $image));
Please sign in to comment.
Something went wrong with that request. Please try again.