Browse Source

Moving around some tokens

Signed-off-by: Suki <[email protected]>
Suki 10 years ago
parent
commit
08b100cde1
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Sources/ModerationCenter.php

+ 4 - 4
Sources/ModerationCenter.php

@@ -316,10 +316,6 @@ function ModBlockNotes()
 	$context['report_post_action'] = !empty($_SESSION['rc_confirmation']) ? $_SESSION['rc_confirmation'] : array();
 	unset($_SESSION['rc_confirmation']);
 
-	// Couple tokens for add/delete modnotes
-	createToken('mod-modnote-add');
-	createToken('mod-modnote-del', 'get');
-
 	// Are we saving a note?
 	if (isset($_GET['modnote']) && isset($_POST['makenote']) && isset($_POST['new_note']))
 	{
@@ -447,6 +443,10 @@ function ModBlockNotes()
 			return confirm('. JavaScriptEscape($txt['mc_reportedp_delete_confirm']) .');
 	});', true);
 
+	// Couple tokens for add/delete modnotes
+	createToken('mod-modnote-add');
+	createToken('mod-modnote-del', 'get');
+
 	return 'notes';
 }