[tag_history] prevent tag aliasing for correctness and huge performance improvement
This commit is contained in:
parent
f50795029a
commit
d8505f4469
1 changed files with 2 additions and 2 deletions
|
@ -135,9 +135,9 @@ class TagHistoryTheme extends Themelet
|
|||
$th = new TagHistory();
|
||||
$pt = $th->get_previous_tags($image_id, $current_id);
|
||||
if ($pt) {
|
||||
$previous_tags = Tag::explode($pt["tags"]);
|
||||
$previous_tags = explode(" ", $pt["tags"]);
|
||||
}
|
||||
$current_tags = Tag::explode($current_tags);
|
||||
$current_tags = explode(" ", $current_tags);
|
||||
if ($pt) {
|
||||
$tags = array_unique(array_merge($current_tags, $previous_tags));
|
||||
sort($tags);
|
||||
|
|
Reference in a new issue