diff options
| author | spiderr <spider@viovio.com> | 2011-07-11 17:04:35 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2011-07-11 17:04:35 -0400 |
| commit | 0498c9f1f1a44af8b41e91bf269db3b2904022bb (patch) | |
| tree | 7197daeb4ee8cda10cf3185d6585c0bd5abd07ca | |
| parent | 077325265ff80d112083bba6f35457f2dda55530 (diff) | |
| download | tags-0498c9f1f1a44af8b41e91bf269db3b2904022bb.tar.gz tags-0498c9f1f1a44af8b41e91bf269db3b2904022bb.tar.bz2 tags-0498c9f1f1a44af8b41e91bf269db3b2904022bb.zip | |
clean up assignment on load - use setField to put value into pObject
| -rw-r--r-- | LibertyTag.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/LibertyTag.php b/LibertyTag.php index aea2f4e..5599a39 100644 --- a/LibertyTag.php +++ b/LibertyTag.php @@ -717,9 +717,11 @@ function tags_content_edit( $pObject=NULL ) { } } + $pObject->setField( 'tags', implode(", ", $tags) ); + $gBitSmarty->assign( 'loadTags', TRUE ); - $gBitSmarty->assign( 'tagList', !empty( $tags ) ? implode(", ", $tags) : NULL ); - $gBitSmarty->assign( 'tagData', !empty( $tag->mInfo['tags'] ) ? $tag->mInfo['tags'] : NULL ); + $gBitSmarty->assign( 'tagList', $pObject->getField( 'tags' ) ); + $gBitSmarty->assign( 'tagData', $tag->getField( 'tags' ) ); } } } |
