Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: 2 PATCH for search function  (Read 844 times)

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
2 PATCH for search function
« on: November 16, 2011, 09:15:07 PM »

Missing '
Quote
// SEARCH ENGINE
function search() {
   $search_query = clean(cleanXSS($_POST['search_query']));
   echo '<h2>'.l('search_results').'</h2>';


Quote
// FIND CATEGORY'S SEF TITLE THROUGH ARTICLE'S CATEGORY ID - 1.6.0 - revised.
function find_cat_sef($categoryid) {
    if ($categoryid==0) {return l('home_sef');}
   $SEF = retrieve('seftitle','categories','id', $categoryid);
   $cat_sef_title = isset($SEF) ? $SEF : l('home_sef');
   return $cat_sef_title;
}
Logged
Need a Job on Europe. Linkdin - Facebook / Group