diff -r 94af07c8f2f3 -r 88c954d2846c plugins/Gallery.php --- a/plugins/Gallery.php Wed Jul 25 16:43:47 2007 -0400 +++ b/plugins/Gallery.php Wed Jul 25 18:15:14 2007 -0400 @@ -34,9 +34,12 @@ img_time_mod int(12) NOT NULL DEFAULT 0, PRIMARY KEY ( img_id ) );'); + if ( !$q ) $db->_die(); + $q = $db->sql_query('CREATE FULLTEXT INDEX '.table_prefix.'gal_idx ON '.table_prefix.'gallery(img_title, img_desc);'); + setConfig('gallery_version', GALLERY_VERSION); } @@ -46,5 +49,6 @@ require( ENANO_ROOT . '/plugins/gallery/browser.php' ); require( ENANO_ROOT . '/plugins/gallery/upload.php' ); require( ENANO_ROOT . '/plugins/gallery/fetcher.php' ); +require( ENANO_ROOT . '/plugins/gallery/search.php' ); ?>