Przeglądaj źródła

You can’t use noscript inside the head see #4400 & http://reference.sitepoint.com/html/noscript

Julio Montoya 13 lat temu
rodzic
commit
2042d4e3a6
2 zmienionych plików z 2 dodań i 3 usunięć
  1. 1 3
      index.php
  2. 1 0
      main/template/default/layout/main_header.tpl

+ 1 - 3
index.php

@@ -38,8 +38,7 @@ $htmlHeadXtra[] ='
 			pause			: 10000
 		});
 	});
-</script>
-<noscript>'.get_lang("NoJavascript").'</noscript>';
+</script>';
 
 //set cookie for check if client browser are cookies enabled
 setcookie("TestCookie", "cookies_yes", time()+3600);
@@ -86,7 +85,6 @@ if (!api_get_user_id() && api_get_setting('use_custom_pages') == 'true' ){
   CustomPages::displayPage('index-unlogged');
 }
 
-
 /**
  * @todo This piece of code should probably move to local.inc.php where the actual login procedure is handled.
  * @todo Check if this code is used. I think this code is never executed because after clicking the submit button

+ 1 - 0
main/template/default/layout/main_header.tpl

@@ -4,6 +4,7 @@
     {include file="default/layout/head.tpl"}
 </head>
 <body dir="{$text_direction}" class="{$section_name}">
+<noscript>{"NoJavascript"|get_lang}</noscript>
 
 <div class="skip">
     <ul>