Skip to content

Instantly share code, notes, and snippets.

@mipmip
Created July 12, 2013 15:11
Show Gist options
  • Save mipmip/5985217 to your computer and use it in GitHub Desktop.
Save mipmip/5985217 to your computer and use it in GitHub Desktop.
Bypass for: kickstarter doesn't want to save because MD5 value in invalid.
// Write files:
foreach($writeFiles as
$theFile => $fileData) {
t3lib_div::writeFile($extDirPath.$theFile,$fileData['content']);
if
(!@is_file($extDirPath.$theFile)) {
$content .=
sprintf($GLOBALS['LANG']->getLL('ext_import_file_not_created'),
$extDirPath .
$theFile) . '<br />';
//FORCED FALSE (line 2019)
} elseif (false && md5(t3lib_div::getUrl($extDirPath.$theFile)) !=
$fileData['content_md5']) {
$content .=
sprintf($GLOBALS['LANG']->getLL('ext_import_file_corrupted'),
$extDirPath .
$theFile) . '<br />';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment