From 46148a98d145c343088e250673f75998689dead2 Mon Sep 17 00:00:00 2001 From: Maxime St-Pierre Date: Wed, 30 May 2018 20:05:05 -0400 Subject: [PATCH] Fix empty press-kit (#580) --- controller/action/ContentActions.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/action/ContentActions.class.php b/controller/action/ContentActions.class.php index 954859b7..547931ae 100644 --- a/controller/action/ContentActions.class.php +++ b/controller/action/ContentActions.class.php @@ -278,12 +278,12 @@ class ContentActions extends Actions foreach (glob(ROOT_DIR . '/web/img/press/*') as $productImgPath) { $imgPathTokens = explode('/', $productImgPath); $imgName = $imgPathTokens[count($imgPathTokens) - 1]; - $zip->addFile($productImgPath, '/logo_and_product/' . $imgName); + $zip->addFile($productImgPath, 'logo_and_product/' . $imgName); } foreach (glob(ContentActions::CONTENT_DIR . '/bio/*.md') as $bioPath) { list($metadata, $bioHtml) = View::parseMarkdown($bioPath); - $zip->addFile($bioPath, '/team_bios/' . $metadata['name'] . ' - ' . $metadata['role'] . '.txt'); + $zip->addFile($bioPath, 'team_bios/' . $metadata['name'] . ' - ' . $metadata['role'] . '.txt'); } /*