Explorar o código

Fix for BoardIndex in wap - Thanks Wanchope for reporting, thanks Illori for finding the issue

Signed-off-by: emanuele <[email protected]>
emanuele %!s(int64=11) %!d(string=hai) anos
pai
achega
5f7c39afd6
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Sources/BoardIndex.php

+ 3 - 1
Sources/BoardIndex.php

@@ -32,11 +32,13 @@ function BoardIndex()
 	if (WIRELESS)
 		$context['sub_template'] = WIRELESS_PROTOCOL . '_boardindex';
 	else
+	{
 		loadTemplate('BoardIndex');
+		$context['template_layers'][] = 'boardindex_outer';
+	}
 
 	// Set a canonical URL for this page.
 	$context['canonical_url'] = $scripturl;
-	$context['template_layers'][] = 'boardindex_outer';
 
 	// Do not let search engines index anything if there is a random thing in $_GET.
 	if (!empty($_GET))