From 202f6ad7a9d5e1c264ce68233aeed70559051fcf Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 15 Oct 2013 10:54:03 +0200 Subject: [PATCH] Removing legacy code and fixup_* for Status_network tags --- classes/Status_network.php | 9 +------- scripts/fixup_status_network.php | 37 -------------------------------- 2 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 scripts/fixup_status_network.php diff --git a/classes/Status_network.php b/classes/Status_network.php index 7d6e946113..eb9bd69e1f 100644 --- a/classes/Status_network.php +++ b/classes/Status_network.php @@ -318,14 +318,7 @@ class Status_network extends Safe_DataObject */ function getTags() { - $result = Status_network_tag::getTags($this->site_id); - - // XXX : for backwards compatibility - if (empty($result)) { - return explode('|', $this->tags); - } - - return $result; + return Status_network_tag::getTags($this->site_id); } /** diff --git a/scripts/fixup_status_network.php b/scripts/fixup_status_network.php deleted file mode 100644 index def1eaa884..0000000000 --- a/scripts/fixup_status_network.php +++ /dev/null @@ -1,37 +0,0 @@ -#!/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...');