Move recaptcha javascript to actual <head> tag
The way it was handled previously resulted in invalid html, with an extra <head> tag being inserteed inside the <body>.
This commit is contained in:
parent
71c35e712b
commit
a403c1db8c
|
@ -71,7 +71,10 @@ function xhtmlHeaders( $file, $title )
|
|||
<script type="text/javascript" src="js/mootools.ext.js"></script>
|
||||
<script type="text/javascript" src="js/logger.js"></script>
|
||||
<script type="text/javascript" src="js/overlay.js"></script>
|
||||
<?php if ( $title == 'Login' && (defined('ZM_OPT_USE_GOOG_RECAPTCHA') && ZM_OPT_USE_GOOG_RECAPTCHA) ) { ?>
|
||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||
<?php
|
||||
}
|
||||
if ( $skinJsPhpFile )
|
||||
{
|
||||
?>
|
||||
|
|
|
@ -20,13 +20,6 @@
|
|||
|
||||
xhtmlHeaders(__FILE__, translate('Login') );
|
||||
?>
|
||||
<!-- PP: Add recaptcha script if enabled -->
|
||||
<?php
|
||||
if (defined('ZM_OPT_USE_GOOG_RECAPTCHA') && ZM_OPT_USE_GOOG_RECAPTCHA)
|
||||
{
|
||||
echo "<head> <script src='https://www.google.com/recaptcha/api.js'></script> </head>";
|
||||
}
|
||||
?>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="header">
|
||||
|
|
Loading…
Reference in New Issue