MDL-13404 - Modification to all tag_get_tags_* calls needing an array & other improvements

This commit is contained in:
scyrma
2008-02-26 06:39:10 +00:00
parent 186fa912d9
commit 7bbd75dc6e
6 changed files with 63 additions and 39 deletions
+2 -2
View File
@@ -119,11 +119,11 @@ switch ($action) {
$post->action = $action;
$strformheading = get_string('updateentrywithid', 'blog');
if ($itemptags = html_entity_decode(tag_get_tags_csv(array('type'=>'post', 'id'=>$post->id), TAG_RETURN_TEXT, 'default'))) {
if ($itemptags = html_entity_decode(tag_get_tags_csv('post', $post->id, TAG_RETURN_TEXT, 'default'))) {
$post->ptags = $itemptags;
}
if ($itemotags = tag_get_tags_array(array('type'=>'post', 'id'=>$post->id), 'official')) {
if ($itemotags = tag_get_tags_array('post', $post->id, 'official')) {
$post->otags = array_keys($itemotags);
}
break;