Skip to content

Commit

Permalink
first uploaded image becomes gallery thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlyn committed Jun 26, 2006
1 parent 2272f6d commit 5f4f539
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/admin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 5f4f539

Please sign in to comment.