Fixed a minor offset issue in search hook
authorDan
Thu, 29 Jan 2009 02:04:15 -0500
changeset 31 3e8d2acd7388
parent 30 689b095d02cf
child 32 9803dde5df5f
Fixed a minor offset issue in search hook
plugins/gallery/search.php
--- a/plugins/gallery/search.php	Thu Jan 29 02:03:47 2009 -0500
+++ b/plugins/gallery/search.php	Thu Jan 29 02:04:15 2009 -0500
@@ -16,7 +16,7 @@
 // Search results hook
 //
 
-$plugins->attachHook('search_results', 'gal_searcher($q, $offset);');
+$plugins->attachHook('search_results', 'if ( !isset($offset) ) $offset =& $start; gal_searcher($q, $offset);');
 $plugins->attachHook('search_global_inner', 'snapr_search_new_api($query, $query_phrase, $scores, $page_data, $case_sensitive, $word_list);');
 
 $plugins->attachHook('compile_template', '