From 775438ba8ff3cd71a1891b1f46d40d4255f14220 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 23 May 2015 13:24:01 +0200 Subject: [PATCH] Fix variable name --- .../plugin/ACPTemplatePackageInstallationPlugin.class.php | 2 +- .../package/plugin/FilePackageInstallationPlugin.class.php | 2 +- .../package/plugin/SQLPackageInstallationPlugin.class.php | 2 +- .../package/plugin/TemplatePackageInstallationPlugin.class.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php index 74979841d5..8ae0a035e5 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ACPTemplatePackageInstallationPlugin.class.php @@ -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)) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php index 73da12f5b8..c41c485ae8 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php @@ -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)) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php index 59093ebb34..29516a2d1a 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php @@ -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)) { diff --git a/wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php index 168dc0bdeb..9f70529b24 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/TemplatePackageInstallationPlugin.class.php @@ -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)) { -- 2.20.1