mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
The "file" variable isn't stored anymore in the item table
This commit is contained in:
parent
8e55d3585f
commit
bffdf96d87
6 changed files with 78 additions and 93 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue