Browse Source

Merge pull request #361 from emanuele45/fix_wap

Fix for BoardIndex in wap - Thanks Wanchope for reporting, thanks Illori...
Oldiesmann 12 years ago
parent
commit
2acd9d32b7
1 changed files with 3 additions and 1 deletions
  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))