浏览代码

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 年之前
父节点
当前提交
03c98f5a50
共有 1 个文件被更改,包括 5 次插入0 次删除
  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">