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:
Kyle Johnson 2016-03-12 19:14:07 -05:00
parent 71c35e712b
commit a403c1db8c
2 changed files with 3 additions and 7 deletions

View File

@ -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 )
{
?>

View File

@ -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">