The "file" variable isn't stored anymore in the item table

This commit is contained in:
Michael 2018-07-01 07:57:59 +00:00
parent 8e55d3585f
commit bffdf96d87
6 changed files with 78 additions and 93 deletions

View file

@ -41,7 +41,11 @@ class Term
$condition = ['otype' => TERM_OBJ_POST, 'oid' => $itemid, 'type' => [TERM_FILE, TERM_CATEGORY]];
$tags = dba::select('term', [], $condition);
while ($tag = dba::fetch($tags)) {
$file_text .= '[' . $tag['term'] . ']';
if ($tag['type'] == TERM_CATEGORY) {
$file_text .= '<' . $tag['term'] . '>';
} else {
$file_text .= '[' . $tag['term'] . ']';
}
}
return $file_text;
}