# HG changeset patch # User Dan # Date 1185475425 14400 # Node ID 8490ce0cdd8c9c1018e0150443cc7087af5ec840 # Parent 44a94a3214b89e7cc4b1bd7e322a9ee812e49a80 Added sample image (Snapr logo) to the gallery on a clean installation diff -r 44a94a3214b8 -r 8490ce0cdd8c cache/snapr-logo.png-preview.jpg Binary file cache/snapr-logo.png-preview.jpg has changed diff -r 44a94a3214b8 -r 8490ce0cdd8c cache/snapr-logo.png-thumb.jpg Binary file cache/snapr-logo.png-thumb.jpg has changed diff -r 44a94a3214b8 -r 8490ce0cdd8c files/snapr-logo.png Binary file files/snapr-logo.png has changed diff -r 44a94a3214b8 -r 8490ce0cdd8c plugins/Gallery.php --- a/plugins/Gallery.php Thu Jul 26 12:41:49 2007 -0400 +++ b/plugins/Gallery.php Thu Jul 26 14:43:45 2007 -0400 @@ -40,6 +40,14 @@ $q = $db->sql_query('CREATE FULLTEXT INDEX '.table_prefix.'gal_idx ON '.table_prefix.'gallery(img_title, img_desc);'); + if ( !$q ) + $db->_die(); + + $q = $db->sql_query('INSERT INTO '.table_prefix.'gallery(img_title,img_desc,img_filename,img_time_upload,img_time_mod) VALUES(\'Welcome to Snapr!\', \'You\'\'re past the hard part - Snapr is set up and working on your server. What you\'\'re looking at now is what most users will see when they look at an image in your gallery. The next step is to [[Special:GalleryUpload|upload some images]]. After that, make your gallery publicly accessible by adding a link to the [[Special:Gallery|browser]], if you haven\'\'t already done so. See the README file included with Snapr for more information.\', \'snapr-logo.png\', UNIX_TIMESTAMP(), UNIX_TIMESTAMP());'); + + if ( !$q ) + $db->_die(); + setConfig('gallery_version', GALLERY_VERSION); }