fix quote handling in update script

This commit is contained in:
Daniel Seifert 2014-07-18 13:47:44 +00:00
parent bcf4f5cc20
commit 4ca0f90dfd

View File

@ -103,50 +103,62 @@ mM9";
'OXID' => array( 'OXID' => array(
'content' => "md5('" . $this->sModKey . " " . $oShop->getId() . "')", 'content' => "md5('" . $this->sModKey . " " . $oShop->getId() . "')",
'force_update' => false, 'force_update' => false,
'use_quote' => false,
), ),
'OXSHOPID' => array( 'OXSHOPID' => array(
'content' => "'" . $oShop->getId() . "'", 'content' => $oShop->getId(),
'force_update' => false, 'force_update' => false,
'use_quote' => true,
), ),
'OXMODID' => array( 'OXMODID' => array(
'content' => "'" . $this->sModKey . "'", 'content' => $this->sModKey,
'force_update' => true, 'force_update' => true,
'use_quote' => true,
), ),
'OXNAME' => array( 'OXNAME' => array(
'content' => "'" . $this->sModName . "'", 'content' => $this->sModName,
'force_update' => true, 'force_update' => true,
'use_quote' => true,
), ),
'OXACTIVE' => array( 'OXACTIVE' => array(
'content' => "0", 'content' => "0",
'force_update' => false, 'force_update' => false,
'use_quote' => false,
), ),
'OXBASECONFIG' => array( 'OXBASECONFIG' => array(
'content' => "'" . $this->sBaseConf . "'", 'content' => $this->sBaseConf,
'force_update' => true, 'force_update' => true,
'use_quote' => true,
), ),
'OXINSTALLDATE' => array( 'OXINSTALLDATE' => array(
'content' => "NOW()", 'content' => "NOW()",
'force_update' => true, 'force_update' => true,
'use_quote' => false,
), ),
'OXVERSION' => array( 'OXVERSION' => array(
'content' => "'" . $this->sModVersion . "'", 'content' => $this->sModVersion,
'force_update' => true, 'force_update' => true,
'use_quote' => true,
), ),
'OXSHOPVERSION' => array( 'OXSHOPVERSION' => array(
'content' => "'" . oxRegistry::getConfig()->getEdition() . "'", 'content' => oxRegistry::getConfig()->getEdition(),
'force_update' => true, 'force_update' => true,
'use_quote' => true,
), ),
'OXREQUIREMENTS' => array( 'OXREQUIREMENTS' => array(
'content' => "'" . $this->sRequirements . "'", 'content' => $this->sRequirements,
'force_update' => true, 'force_update' => true,
'use_quote' => true,
), ),
'OXVALUE' => array( 'OXVALUE' => array(
'content' => "'" . $this->sBaseValue . "'", 'content' => $this->sBaseValue,
'force_update' => false, 'force_update' => false,
'use_quote' => true,
), ),
'OXNEWREVISION' => array( 'OXNEWREVISION' => array(
'content' => "'" . $this->sModRevision . "'", 'content' => $this->sModRevision,
'force_update' => true, 'force_update' => true,
'use_quote' => true,
), ),
); );
$aRet = $this->_updateTableItem('d3_cfg_mod', $aInsertFields, $aWhere); $aRet = $this->_updateTableItem('d3_cfg_mod', $aInsertFields, $aWhere);