$tar = new Tar(SETUP_FILE);
$contentList = $tar->getContentList();
if (empty($contentList)) {
- throw new SystemException("Can not unpack 'WCFSetup.tar.gz'. File is probably broken.");
+ throw new SystemException("Cannot unpack 'WCFSetup.tar.gz'. File is probably broken.");
}
foreach ($contentList as $file) {
}
if (!class_exists('wcf\system\WCFSetup')) {
- throw new SystemException("Can not find class 'WCFSetup'");
+ throw new SystemException("Cannot find class 'WCFSetup'");
}
// start setup
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("Cannot recreate table '".$tableName."'. A package can only overwrite own tables.");
}
else {
if (!isset($this->conflicts['CREATE TABLE'])) $this->conflicts['CREATE TABLE'] = array();
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("Cannot add column '".$columnName."' to table '".$tableName."'.");
}
}
else {
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("Cannot alter column '".$oldColumnName."'. A package can only change own columns.");
}
}
}
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("Cannot drop column '".$columnName."'. A package can only drop own columns.");
}
}
}
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("Cannot drop index '".$indexName."'. A package can only drop own indices.");
}
}
}
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("Cannot drop index '".$indexName."'. A package can only drop own indices.");
}
}
}
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("Cannot drop table '".$tableName."'. A package can only drop own tables.");
}
}
else {