1, 'request'=>1, 'fmt' => 'score', 'o' => $m[1])); } # Format of a results line. # Special additional variables: $score, $terms if( isset($RecipeInfo['Excerpts']) && IsEnabled($EnableSortByScoreExcerpts,1) ) SDV($SortByScoreFmt, ":[[\$FullName|[-\$Group.-]\$Title]] - ''\$[score] \$score'': (:excerpts \$FullName \$terms:)"); else SDV($SortByScoreFmt, ":[[\$FullName|[-\$Group.-]\$Title]] - ''\$[score] \$score'':"); $FPLFormatOpt['score']['fn']='FPLScore'; function FPLScore($pagename, &$matches, $opt) { global $SortByScoreTitleBonus, $SortByScoreFmt; $matches = MakePageList($pagename,$opt); $terms = $opt['']; for($n=0;$n$p['score'], '$terms'=>$terms); $out[] = FmtPageName( str_replace(array_keys($g),array_values($g),$SortByScoreFmt),$p['pagename']); } return '
' . MarkupToHTML( $pagename, "\n\n".implode("\n",$out)."\n\n" ) . '
'; } function usortByScore($x,$y) { return ($k=$y['score']-$x['score']) ? $k : (@strcasecmp($x['name'],$y['name'])); } function SortByScoreToupper($text) { if( function_exists('utf8toupper') ) return utf8toupper($text); else return strtoupper($text); }