shithub: hugo

Download patch

ref: ac53035030dff7d9e33cd22c33d915f6d1b5ef8b
parent: b874a1ba7ab8394dc741c8c70303a30a35b63e43
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Jul 10 19:21:48 EDT 2018

media: Only show deprecation warning when needed

Fixes #4927

--- a/media/mediaType.go
+++ b/media/mediaType.go
@@ -314,7 +314,7 @@
 			_, delimiterSet := vm["delimiter"]
 			_, suffixSet := vm["suffix"]
 
-			if mediaType.OldSuffix != "" {
+			if suffixSet {
 				suffixIsDeprecated()
 			}