Merged MDL-13725 Remove tag_get_tag_by_id completely. I also re-ordered tag/lib.php a bit

This commit is contained in:
moodler 2008-02-29 06:26:21 +00:00
parent 15234a92a1
commit 8479c2e0dd
6 changed files with 445 additions and 429 deletions

View file

@ -308,8 +308,9 @@ function add_tags_info($postid) {
if ($otags = optional_param('otags', '', PARAM_INT)) {
foreach ($otags as $tagid) {
// TODO : make this use the tag name in the form
$tag = tag_get_tag_by_id($tagid);
$tags[] = $tag->name;
if ($tag = tag_get('id', $tagid)) {
$tags[] = $tag->name;
}
}
}