<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
- {elseif $errorType == 'phpRequirements'}
- {* todo: use language variable (-> else) *}
- <pre>{$phpRequirements|print_r}</pre>
{else}
{lang}wcf.acp.package.error.{@$errorType}{/lang}
{/if}
catch (SystemException $e) {
$this->error('noValidPackage');
}
- $errors = PackageInstallationDispatcher::validatePHPRequirements($archive->getPhpRequirements());
- if (!empty($errors)) {
- // TODO: Nice output
- $this->error('phpRequirements', ['errors' => $errors]);
- }
// try to find existing package
$sql = "SELECT *
'update' => []
];
- /**
- * list of php requirements
- * @var mixed[][]
- */
- protected $phpRequirements = [];
-
/**
* default name of the package.xml file
* @var string
* Returns a list of php requirements for current package.
*
* @return mixed[][]
+ * @deprecated 3.0
*/
public function getPhpRequirements() {
- return $this->phpRequirements;
+ return [];
}
}