Sfoglia il codice sorgente

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

Signed-off-by: emanuele <[email protected]>
emanuele 11 anni fa
parent
commit
5f7c39afd6
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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))