Fix variable name
authorMatthias Schmidt <gravatronics@live.com>
Sat, 23 May 2015 11:24:01 +0000 (13:24 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 23 May 2015 11:24:01 +0000 (13:24 +0200)
wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php

index 74979841d5691d159621687ec4ab623713e40a09..8ae0a035e53642e626cfc76d35036a47dc01a346 100644 (file)
@@ -92,7 +92,7 @@ class ACPTemplatePackageInstallationPlugin extends AbstractPackageInstallationPl
         */
        public static function isValid(PackageArchive $archive, $instruction) {
                if (!$instruction) {
-                       $defaultFilename = static::getDefaultFilename();
+                       $instruction = static::getDefaultFilename();
                }
                
                if (preg_match('~\.(tar(\.gz)?|tgz)$~', $instruction)) {
index 73da12f5b8158faac867cf5dc42911e642ae44b1..c41c485ae88e2ac30598937223a5ff741ec26077 100644 (file)
@@ -120,7 +120,7 @@ class FilePackageInstallationPlugin extends AbstractPackageInstallationPlugin {
         */
        public static function isValid(PackageArchive $archive, $instruction) {
                if (!$instruction) {
-                       $defaultFilename = static::getDefaultFilename();
+                       $instruction = static::getDefaultFilename();
                }
                
                if (preg_match('~\.(tar(\.gz)?|tgz)$~', $instruction)) {
index 59093ebb345e281b5785973cd3a6c434f3b84094..29516a2d1a1e62f6ecc9dba51ac19fb3506654ba 100644 (file)
@@ -164,7 +164,7 @@ class SQLPackageInstallationPlugin extends AbstractPackageInstallationPlugin {
         */
        public static function isValid(PackageArchive $archive, $instruction) {
                if (!$instruction) {
-                       $defaultFilename = static::getDefaultFilename();
+                       $instruction = static::getDefaultFilename();
                }
                
                if (preg_match('~\.sql$~', $instruction)) {
index 168dc0bdeba8f015195cfb6dacc31a85cca62ddc..9f70529b24c2e93681675969ad21801ca8cd8ffc 100644 (file)
@@ -94,7 +94,7 @@ class TemplatePackageInstallationPlugin extends AbstractPackageInstallationPlugi
         */
        public static function isValid(PackageArchive $archive, $instruction) {
                if (!$instruction) {
-                       $defaultFilename = static::getDefaultFilename();
+                       $instruction = static::getDefaultFilename();
                }
                
                if (preg_match('~\.(tar(\.gz)?|tgz)$~', $instruction)) {