Browse Source

! Disable debugging from within the popups. (fixes #919)

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 năm trước cách đây
mục cha
commit
d843e6ba49
2 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 4 1
      Sources/PersonalMessage.php
  2. 4 1
      Sources/Profile.php

+ 4 - 1
Sources/PersonalMessage.php

@@ -378,7 +378,10 @@ function messageIndexBar($area)
  */
 function MessagePopup()
 {
-	global $context, $modSettings, $smcFunc, $memberContext, $scripturl, $user_settings;
+	global $context, $modSettings, $smcFunc, $memberContext, $scripturl, $user_settings, $db_show_debug;
+
+	// We do not want to output debug information here.
+	$db_show_debug = false;
 
 	// We only want to output our little layer here.
 	$context['template_layers'] = array();

+ 4 - 1
Sources/Profile.php

@@ -704,7 +704,10 @@ function ModifyProfile($post_errors = array())
  */
 function profile_popup($memID)
 {
-	global $context, $scripturl, $txt;
+	global $context, $scripturl, $txt, $db_show_debug;
+
+	// We do not want to output debug information here.
+	$db_show_debug = false;
 
 	// We only want to output our little layer here.
 	$context['template_layers'] = array();