From eecafcd2b0b31bc692b2148a828b6929d6f58e60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Steffen=20M=C3=BCller?= <typo3@t3node.com>
Date: Mon, 16 Nov 2015 17:12:47 +0100
Subject: [PATCH] [FOLLOWUP][BUGFIX] Render PDFs and MP3s in FSC.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Move default case to bottom in switch/case VH

Resolves: #71502
Resolves: #71474
Releases: master
Change-Id: I3ed6365e1781119d9f9e2c27e5311b7299cbcf09
Reviewed-on: https://review.typo3.org/44737
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Daniel Lorenz <forge@extco.de>
Tested-by: Wolfgang Wagner <wolfgang.wagner.fn@gmail.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
---
 .../Resources/Private/Partials/MediaGallery.html            | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/typo3/sysext/fluid_styled_content/Resources/Private/Partials/MediaGallery.html b/typo3/sysext/fluid_styled_content/Resources/Private/Partials/MediaGallery.html
index ce4ad227ffff..a6e25d005c70 100644
--- a/typo3/sysext/fluid_styled_content/Resources/Private/Partials/MediaGallery.html
+++ b/typo3/sysext/fluid_styled_content/Resources/Private/Partials/MediaGallery.html
@@ -20,15 +20,15 @@
 							</f:if>
 
 							<f:switch expression="{column.media.type}">
-								<f:case default="TRUE">
-									<f:render section="imageType" arguments="{_all}" />
-								</f:case>
 								<f:case value="3">
 									<f:render section="audioType" arguments="{_all}" />
 								</f:case>
 								<f:case value="4">
 									<f:render section="videoType" arguments="{_all}" />
 								</f:case>
+								<f:case default="TRUE">
+									<f:render section="imageType" arguments="{_all}" />
+								</f:case>
 							 </f:switch>
 
 							<f:if condition="{column.media.description}">
-- 
GitLab