Browse Source

Add sha1 file directly to the template if we are showing the from in response to an ajax call

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
03c98f5a50
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Themes/default/Login.template.php

+ 5 - 0
Themes/default/Login.template.php

@@ -15,6 +15,11 @@ function template_login()
 {
 	global $context, $settings, $scripturl, $modSettings, $txt;
 
+	// AJAX request?
+	if ($context['from_ajax'])
+		echo '
+		<script src="', $settings['default_theme_url'], '/scripts/sha1.js', $modSettings['browser_cache'] ,'"></script>';
+
 	echo '
 		<div class="tborder login">
 			<div class="cat_bar">