Bläddra i källkod

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

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 år sedan
förälder
incheckning
454c29c1b9
1 ändrade filer med 2 tillägg och 1 borttagningar
  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'])