#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); require_once INSTALLDIR.'/scripts/commandline.inc'; common_log(LOG_INFO, 'Beginning status_network conversion...'); $sn = new Status_network(); $sn->find(); while ($sn->fetch()) { try { $sn->setTags(explode('|', $sn->tags)); } catch (Exception $e) { common_log(LOG_ERR, $e->getMessage()); } } common_log(LOG_INFO, 'Completed status_network conversion...');