summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2011-07-11 17:04:35 -0400
committerspiderr <spider@viovio.com>2011-07-11 17:04:35 -0400
commit0498c9f1f1a44af8b41e91bf269db3b2904022bb (patch)
tree7197daeb4ee8cda10cf3185d6585c0bd5abd07ca
parent077325265ff80d112083bba6f35457f2dda55530 (diff)
downloadtags-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.php6
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' ) );
}
}
}