From 764b6a5deb3088c37a685a7a546b126a1034946d Mon Sep 17 00:00:00 2001 From: Florian Schaeffer Date: Tue, 25 Nov 2014 12:21:39 +0100 Subject: [PATCH] [BUGFIX] Change all tx_fed_fcefile to FluidBT namespace --- class.ext_update.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/class.ext_update.php b/class.ext_update.php index e65d5e8..3576811 100644 --- a/class.ext_update.php +++ b/class.ext_update.php @@ -20,12 +20,12 @@ public function access() { */ public function main() { - //select all Contentelements from Fluidcontent_bootstrap and migrate them + //select all Contentelements from Fluidcontent_bootstrap and migrate them - new version - $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tt_content', '`tx_fed_fcefile` LIKE "FluidTYPO3.Fluidcontentbootstrap:%"', 'tx_fed_fcefile', '', ''); + $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tt_content', '(`tx_fed_fcefile` LIKE "FluidTYPO3.Fluidcontentbootstrap:%" OR `tx_fed_fcefile` LIKE "fluidcontent_bootstrap:%" OR `tx_fed_fcefile` LIKE "fluidcontent_twitterbootstrap:%" OR `tx_fed_fcefile` LIKE "fluidbootstraptheme:%")', 'tx_fed_fcefile', '', ''); while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { - $replaced = str_replace('FluidTYPO3.FluidcontentBootstrap', 'fluidbootstraptheme', $row['tx_fed_fcefile']); + $replaced = str_replace(array('FluidTYPO3.FluidcontentBootstrap','fluidcontent_bootstrap','fluidcontent_twitterbootstrap','fluidbootstraptheme'), 'FluidBT.Fluidbootstraptheme', $row['tx_fed_fcefile']); $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tt_content', 'tx_fed_fcefile = "'.$row['tx_fed_fcefile'].'"', array('tx_fed_fcefile' => $replaced)); $updated.= $GLOBALS['TYPO3_DB']->sql_affected_rows() . ' rows have been updated for '.$row['tx_fed_fcefile'].'';