Browse Source

Fixes 521

Signed-off-by: SleePy
Jeremy D 11 years ago
parent
commit
20b1a98040
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Sources/ManageSmileys.php

+ 4 - 0
Sources/ManageSmileys.php

@@ -367,6 +367,10 @@ function EditSmileySets()
 	// This is our save haven.
 	createToken('admin-mss', 'request');
 
+	// In case we need to import smileys, we need to add the token in now.
+	if (isset($context['current_set']['import_url']))
+		$context['current_set']['import_url'] .= ';' . $context['admin-mss_token_var'] . '=' . $context['admin-mss_token'];
+
 	$listOptions = array(
 		'id' => 'smiley_set_list',
 		'title' => $txt['smiley_sets'],