make network tag and personal searches work again

This commit is contained in:
friendica
2012-07-16 21:07:59 -07:00
parent 43a673c11e
commit aeaccb03ba
3 changed files with 24 additions and 31 deletions

View File

@@ -1364,6 +1364,14 @@ function file_tag_file_query($table,$s,$type = 'file') {
);
}
function term_query($table,$s,$type = TERM_UNKNOWN) {
return sprintf(" AND " . (($table) ? dbesc($table) . '.' : '') . "id in (select term.oid from term where term.type = %d and term.term = '%s' and term.uid = " . (($table) ? dbesc($table) . '.' : '') . "uid ) ",
intval($type),
protect_sprintf(dbesc($s))
);
}
// ex. given music,video return <music><video> or [music][video]
function file_tag_list_to_file($list,$type = 'file') {
$tag_list = '';