]> p2p-next.cs.pub.ro Git - living-lab-site.git/commitdiff
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 1e046e4a4dbac737fb35e309de1c6a0f38c3c15e..a71d1b7c046279229998b3c546e7b9f78463817d 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 c8eeb7f7613a6d9baa8d070afe5c9b08ec0d3d44..46efd1097fe6f414c4f72193b7247e1ef0609c29 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