From: Matthias Schmidt Date: Mon, 15 Apr 2013 18:30:49 +0000 (+0200) Subject: Fixes error messages X-Git-Tag: 2.0.0_Beta_1~343^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=320f7ee01c2abbf55cc97f097278f201ac034af4;p=GitHub%2FWoltLab%2FWCF.git Fixes error messages --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php index bd5927d06d..dd944b105b 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php @@ -260,7 +260,7 @@ class PackageInstallationSQLParser extends SQLParser { if ($this->test) { if (in_array($tableName, $this->existingTables)) { if (isset($this->knownTables[$tableName]) && $this->knownTables[$tableName] != $this->package->packageID) { - throw new SystemException("Can not recreate table '.$tableName.'. A package can only overwrite own tables."); + throw new SystemException("Can not recreate table '".$tableName."'. A package can only overwrite own tables."); } else { if (!isset($this->conflicts['CREATE TABLE'])) $this->conflicts['CREATE TABLE'] = array(); @@ -283,7 +283,7 @@ class PackageInstallationSQLParser extends SQLParser { protected function executeAddColumnStatement($tableName, $columnName, $columnData) { if ($this->test) { if (!isset($this->knownTables[$tableName])) { - throw new SystemException("Can not add column '".$columnName."' to table '.$tableName.'."); + throw new SystemException("Can not add column '".$columnName."' to table '".$tableName."'."); } } else { @@ -302,7 +302,7 @@ class PackageInstallationSQLParser extends SQLParser { if ($this->test) { if ($ownerPackageID = $this->getColumnOwnerID($tableName, $oldColumnName)) { if ($ownerPackageID != $this->package->packageID) { - throw new SystemException("Can not alter column '.$oldColumnName.'. A package can only change own columns."); + throw new SystemException("Can not alter column '".$oldColumnName."'. A package can only change own columns."); } } } @@ -351,7 +351,7 @@ class PackageInstallationSQLParser extends SQLParser { if ($this->test) { if ($ownerPackageID = $this->getColumnOwnerID($tableName, $columnName)) { if ($ownerPackageID != $this->package->packageID) { - throw new SystemException("Can not drop column '.$columnName.'. A package can only drop own columns."); + throw new SystemException("Can not drop column '".$columnName."'. A package can only drop own columns."); } } } @@ -371,7 +371,7 @@ class PackageInstallationSQLParser extends SQLParser { if ($this->test) { if ($ownerPackageID = $this->getIndexOwnerID($tableName, $indexName)) { if ($ownerPackageID != $this->package->packageID) { - throw new SystemException("Can not drop index '.$indexName.'. A package can only drop own indices."); + throw new SystemException("Can not drop index '".$indexName."'. A package can only drop own indices."); } } } @@ -392,7 +392,7 @@ class PackageInstallationSQLParser extends SQLParser { if (in_array($tableName, $this->existingTables)) { if (isset($this->knownTables[$tableName])) { if ($this->knownTables[$tableName] != $this->package->packageID) { - throw new SystemException("Can not drop table '.$tableName.'. A package can only drop own tables."); + throw new SystemException("Can not drop table '".$tableName."'. A package can only drop own tables."); } } else {