Ver Fonte

! Fix the headers for old WAP, as per Mantis 2817

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer há 10 anos atrás
pai
commit
454c29c1b9
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      Sources/Subs.php

+ 2 - 1
Sources/Subs.php

@@ -3062,7 +3062,8 @@ function template_header()
 			header('Content-Type: text/html; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
 	}
 
-	header('Content-Type: text/' . (isset($_REQUEST['xml']) ? 'xml' : 'html') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
+	if (!WIRELESS || WIRELESS_PROTOCOL != 'wap')
+		header('Content-Type: text/' . (isset($_REQUEST['xml']) ? 'xml' : 'html') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
 
 	// We need to splice this in after the body layer, or after the main layer for older stuff.
 	if ($context['in_maintenance'] && $context['user']['is_admin'])