From: Hans-Emil Skogh Date: Thu, 22 Dec 2011 20:12:55 +0000 (+0100) Subject: Searching now looks at the description of an app in addition to name and summary. X-Git-Tag: 0.1~1063^2~14^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a9fd66cae20571a7061a670a54799f2874e0650d;p=fdroidserver.git Searching now looks at the description of an app in addition to name and summary. --- diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index 7d1b1dfc..bf728ac8 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -315,13 +315,16 @@ class FDroid case "summary": $appinfo['summary']=$el; break; + case "description": + $appinfo['description']=$el; + break; case "license": $appinfo['license']=$el; break; } } - if($query_vars['fdfilter']===null || $query_vars['fdfilter']!='' && (stristr($appinfo['name'],$query_vars['fdfilter']) || stristr($appinfo['summary'],$query_vars['fdfilter']))) { + if($query_vars['fdfilter']===null || $query_vars['fdfilter']!='' && (stristr($appinfo['name'],$query_vars['fdfilter']) || stristr($appinfo['summary'],$query_vars['fdfilter']) || stristr($appinfo['description'],$query_vars['fdfilter']))) { if($skipped<($query_vars['fdpage']-1)*$outputter->perpage) { $skipped++; } else if($got<$outputter->perpage) {