throw new IllegalLinkException();
}
- $this->project->validatePackageXml();
+ if ($this->project->validatePackageXml() !== '') {
+ throw new IllegalLinkException();
+ }
if (isset($_REQUEST['pip'])) $this->pip = StringUtil::trim($_REQUEST['pip']);
throw new IllegalLinkException();
}
- $this->project->validatePackageXml();
+ if ($this->project->validatePackageXml() !== '') {
+ throw new IllegalLinkException();
+ }
if (isset($_REQUEST['pip'])) $this->pip = StringUtil::trim($_REQUEST['pip']);
if ($this->getPackage() === null) {
return WCF::getLanguage()->getDynamicVariable('wcf.acp.devtools.project.path.error.notInstalled', [
- 'package' => $this->packageArchive->getPackageInfo('name')
+ 'project' => $this
]);
}