From 3177ec9aa46ca4feeb9eda48d9b6bce66a722f42 Mon Sep 17 00:00:00 2001 From: Calin Burloiu Date: Tue, 13 Sep 2011 19:50:44 +0300 Subject: [PATCH] apotrophos search bug solved --- application/config/p2p-tube.php | 2 +- application/models/videos_model.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1