apotrophos search bug solved
authorCalin Burloiu <calin.burloiu@gmail.com>
Tue, 13 Sep 2011 16:50:44 +0000 (19:50 +0300)
committerCalin Burloiu <calin.burloiu@gmail.com>
Tue, 13 Sep 2011 16:50:44 +0000 (19:50 +0300)
application/config/p2p-tube.php
application/models/videos_model.php

index 1e046e4..a71d1b7 100644 (file)
@@ -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;
index c8eeb7f..46efd10 100644 (file)
@@ -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