protected patchMagentoInstallerForPHP54 ( string $magentoFolder ) | ||
$magentoFolder | string |
protected function patchMagentoInstallerForPHP54($magentoFolder)
{
$installerConfig = $magentoFolder . DIRECTORY_SEPARATOR . 'app/code/core/Mage/Install/etc/config.xml';
if (file_exists($installerConfig)) {
$xml = file_get_contents($installerConfig);
file_put_contents($installerConfig, str_replace('<pdo_mysql/>', '<pdo_mysql>1</pdo_mysql>', $xml));
}
}