امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
PHP:
This extracts the the addon file twice, and if the addon file fails to decode this can silently fail on production copies instead of giving a saner error message...
Read more
کد:
if (!$zip->extractTo(File::createTempDir(), $jsonFile))
{
$error = \XF::phrase('files_could_not_be_extracted_from_add_on_archive');
return false;
}
$json = json_decode($zip->getFromName($jsonFile), true);
$addOnManager = $this->app->addOnManager();
$title = $json['title'];
$newVersionId = $json['version_id'];
This extracts the the addon file twice, and if the addon file fails to decode this can silently fail on production copies instead of giving a saner error message...
Read more
