瀏覽代碼

! Added admin.js to anti-spam page (due to the move of addAnotherQuestion from the template to the js file)

emanuele 13 年之前
父節點
當前提交
a7e7342706
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Themes/default/Admin.template.php

+ 2 - 1
Themes/default/Admin.template.php

@@ -1396,7 +1396,7 @@ function template_core_features()
 // This little beauty shows questions and answer from the captcha type feature.
 // This little beauty shows questions and answer from the captcha type feature.
 function template_callback_question_answer_list()
 function template_callback_question_answer_list()
 {
 {
-	global $txt, $context;
+	global $txt, $context, $settings;
 
 
 	echo '
 	echo '
 			<dt>
 			<dt>
@@ -1430,6 +1430,7 @@ function template_callback_question_answer_list()
 		<dt id="add_more_question_placeholder" style="display: none;"></dt><dd></dd>
 		<dt id="add_more_question_placeholder" style="display: none;"></dt><dd></dd>
 		<dt id="add_more_link_div" style="display: none;">
 		<dt id="add_more_link_div" style="display: none;">
 			<a href="#" onclick="addAnotherQuestion(); return false;">&#171; ', $txt['setup_verification_add_more'], ' &#187;</a>
 			<a href="#" onclick="addAnotherQuestion(); return false;">&#171; ', $txt['setup_verification_add_more'], ' &#187;</a>
+			<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/admin.js?fin20"></script>
 
 
 		</dt><dd></dd>';
 		</dt><dd></dd>';