From: Calin Burloiu Date: Tue, 13 Sep 2011 16:50:44 +0000 (+0300) Subject: apotrophos search bug solved X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=3177ec9aa46ca4feeb9eda48d9b6bce66a722f42;hp=f8bfacb65b055af85f639e65aff66a680d0d3231;p=living-lab-site.git apotrophos search bug solved --- diff --git a/application/config/p2p-tube.php b/application/config/p2p-tube.php index 1e046e4..a71d1b7 100644 --- a/application/config/p2p-tube.php +++ b/application/config/p2p-tube.php @@ -120,4 +120,4 @@ $config['videos_per_row'] = 5; | The number of search results shown per page (as in catalog/search). | */ -$config['search_results_per_page'] = 10; +$config['search_results_per_page'] = 20; diff --git a/application/models/videos_model.php b/application/models/videos_model.php index c8eeb7f..46efd10 100644 --- a/application/models/videos_model.php +++ b/application/models/videos_model.php @@ -240,6 +240,7 @@ class Videos_model extends CI_Model { $category_id = NULL) { $search_query = trim($search_query); + $search_query = str_replace("'", " ", $search_query); // Search word fragments. // sfc = search fragment condition