sNews Forum

sNews 1.6 (previous version) => Patches/fixes => Topic started by: Rui Mendes on November 16, 2011, 09:15:07 PM

Title: 2 PATCH for search function
Post by: Rui Mendes 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;
}