From ba979c50c7c0b71e9b33eeb609ed5b8501a68f95 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 19 Jun 2017 13:20:17 +0200 Subject: [PATCH] Add color rgb hex to set zip --- src/AppBundle/Service/ZipService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AppBundle/Service/ZipService.php b/src/AppBundle/Service/ZipService.php index 9d2336c..063f095 100644 --- a/src/AppBundle/Service/ZipService.php +++ b/src/AppBundle/Service/ZipService.php @@ -128,7 +128,7 @@ class ZipService $model = $modelArray['model']; $quantity = $modelArray['quantity']; - $filename = "{$this->zipName}/{$color->getName()}/{$model->getId()}_({$quantity}x).stl"; + $filename = "{$this->zipName}/{$color->getName()}_(#{$color->getRgb()})/{$model->getId()}_({$quantity}x).stl"; $this->addModel($filename, $model); } @@ -166,7 +166,7 @@ class ZipService */ private function addLicense() { - $text = sprintf('All stl files in this archive were converted by LDView from LDraw Library http://www.ldraw.org/'."\n\n"); + $text = sprintf('All stl files in this archive were converted by LDView from official LDraw Library http://www.ldraw.org/'."\n\n"); $text .= sprintf('Files are licensed under the Creative Commons - Attribution license.'."\n"); $text .= sprintf('http://creativecommons.org/licenses/by/2.0/'."\n\n");