Changeset 807 for trunk/app/controllers
- Timestamp:
- 10/10/08 21:17:54 (8 weeks ago)
- Location:
- trunk/app/controllers
- Files:
-
- 2 modified
-
components/search.php (modified) (2 diffs)
-
entries_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/components/search.php
r806 r807 70 70 $q .= "to_tsquery('karamelo_".$this->lang."','".$t."')) AS rank FROM news, to_tsquery('karamelo_".$this->lang."','".$t."') "; 71 71 $q .= "query WHERE to_tsquery('karamelo_".$this->lang."','".$t."') @@ to_tsvector('karamelo_".$this->lang."', body) "; 72 $q .= "ORDER BY rank DESC LIMIT 20) AS foo";72 $q .= "ORDER BY rank DESC LIMIT 20) AS news"; 73 73 break; 74 74 case 'Entry': … … 77 77 $q .= "to_tsquery('karamelo_".$this->lang."','".$t."')) AS rank FROM entries, to_tsquery('karamelo_".$this->lang."','".$t."') "; 78 78 $q .= "query WHERE to_tsquery('karamelo_".$this->lang."','".$t."') @@ to_tsvector('karamelo_".$this->lang."', body) "; 79 $q .= "ORDER BY rank DESC LIMIT 20 ) AS foo";79 $q .= "ORDER BY rank DESC LIMIT 20 ) AS entries"; 80 80 break; 81 81 -
trunk/app/controllers/entries_controller.php
r806 r807 76 76 } 77 77 78 79 78 public function rss($username) 80 79 { … … 111 110 112 111 $this->Sanitize->paranoid($this->data['Entry']['terms']); 113 112 114 113 $this->set('data', $this->Search->getRows($this->data['Entry']['terms'])); 115 114 }
