'package' => $this->installation->getArchive()->getPackageInfo('name'),
'packageName' => $this->installation->getArchive()->getPackageInfo('packageName'),
'instanceNo' => $instanceNo,
- 'packageDescription' => $this->installation->getArchive()->getPackageInfo('packageDescription'),
+ 'packageDescription' => $this->installation->getArchive()->getPackageInfo('packageDescription') !== null ? $this->installation->getArchive()->getPackageInfo('packageDescription') : '',
'packageVersion' => $this->installation->getArchive()->getPackageInfo('version'),
'packageDate' => $this->installation->getArchive()->getPackageInfo('date'),
'packageURL' => $this->installation->getArchive()->getPackageInfo('packageURL'),
'standalone' => $this->installation->getArchive()->getPackageInfo('standalone'),
'author' => $this->installation->getArchive()->getAuthorInfo('author'),
- 'authorURL' => $this->installation->getArchive()->getAuthorInfo('authorURL'),
+ 'authorURL' => $this->installation->getArchive()->getAuthorInfo('authorURL') !== null ? $this->installation->getArchive()->getAuthorInfo('authorURL') : '',
'installDate' => TIME_NOW,
'updateDate' => TIME_NOW
))
<?php
namespace wcf\system\package\plugin;
+use wcf\data\package\Package;
use wcf\system\package\PackageInstallationSQLParser;
use wcf\system\exception\SystemException;
use wcf\system\WCF;
if ($package->standalone == 1) {
// package is standalone
- $packageAbbr = $package->getAbbreviation();
+ $packageAbbr = Package::getAbbreviation($package->package);
$tablePrefix = WCF_N.'_'.$package->instanceNo.'_';
// Replace the variable xyz1_1 with $tablePrefix in the table names.