Fixes bug in ACPTemplatesFileHandler
authorMatthias Schmidt <gravatronics@live.com>
Tue, 1 Jan 2013 16:18:37 +0000 (17:18 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 1 Jan 2013 16:18:37 +0000 (17:18 +0100)
wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php

index c268901c8bf8ab83ec7cbecc91aa7218545f70a5..3cc01ad05840e816d8d9f0732cdcccf4e8447db7 100644 (file)
@@ -60,7 +60,7 @@ class ACPTemplatesFileHandler extends PackageInstallationFileHandler {
                                        foreach ($fileNames as $key => $file) {
                                                if (isset($lockedFiles[$file]) && $packageID != $lockedFiles[$file]) {
                                                        $owningPackage = new Package($lockedFiles[$file]);
-                                                       throw new SystemException("A non-application package can't overwrite template files. Only an update from the package which owns the template can do that. (Package '".$this->packageInstallation->getPackage()->getPackage()."' tries to overwrite template '".$file."', which is owned by package '".$owningPackage->package."')");
+                                                       throw new SystemException("A non-application package can't overwrite template files. Only an update from the package which owns the template can do that. (Package '".$this->packageInstallation->getPackage()->package."' tries to overwrite template '".$file."', which is owned by package '".$owningPackage->package."')");
                                                }
                                        }
                                }