From faa4cf14f169e44d28f60ea41f28d80972ca0103 Mon Sep 17 00:00:00 2001 From: luzeagithub <62355456+luzeagithub@users.noreply.github.com> Date: Sat, 6 Feb 2021 15:38:19 +0100 Subject: [PATCH] Fix isku variable name Co-authored-by: abbodi1406 <33669284+abbodi1406@users.noreply.github.com> --- shared/genpack.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/genpack.php b/shared/genpack.php index 518abf3..70592ba 100644 --- a/shared/genpack.php +++ b/shared/genpack.php @@ -34,6 +34,7 @@ function generatePack($updateId) { return 0; } + $isku = $files['sku']; $files = $files['files']; $filesKeys = array_keys($files); @@ -142,11 +143,11 @@ function generatePack($updateId) { $lang = preg_replace('/.*DesktopTargetCompDB_.*_|.*ServerTargetCompDB_.*_/', '', $filNam); $edition = preg_replace('/.*DesktopTargetCompDB_|.*ServerTargetCompDB_|_'.$lang.'/', '', $filNam); - if($sku == 189) { + if($isku == 189) { $lang = 'en-us'; $edition = 'Lite'; } - if($sku == 135) { + if($isku == 135) { $lang = 'en-us'; $edition = 'Holographic'; }