plugins/gallery/search.php
changeset 31 3e8d2acd7388
parent 16 36dd990c0c25
child 42 7c6e2e97aa08
--- 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', '