static function convertEntryPropertiesTags() { global $serendipity; $q = "SELECT entryid, value FROM {$serendipity['dbPrefix']}entryproperties WHERE property = 'ep_freetag_name'"; $result = serendipity_db_query($q); if (!is_array($result)) { return false; } foreach ($result as $entry) { $tags = serendipity_event_freetag::makeTagsFromTaglist($entry['value']); serendipity_event_freetag::addTagsToEntry($entry['entryid'], $tags); printf(PLUGIN_FREETAG_UPGRADE1_2, count($tags), $entry['entryid']); echo '<BR/>'; } $q = "DELETE FROM {$serendipity['dbPrefix']}entryproperties WHERE property = 'ep_freetag_name'"; $result = serendipity_db_query($q); }