Browse Source

Quick reply is no more special than any other theme option
+ fixed a couple of submit in the admin themes section

Signed-off-by: emanuele <[email protected]>

emanuele 12 years ago
parent
commit
20046a5465
2 changed files with 2 additions and 6 deletions
  1. 0 4
      Sources/Register.php
  2. 2 2
      Sources/Themes.php

+ 0 - 4
Sources/Register.php

@@ -379,10 +379,6 @@ function Register2($verifiedOpenID = false)
 	// Make sure they are clean, dammit!
 	$regOptions['theme_vars'] = htmlspecialchars__recursive($regOptions['theme_vars']);
 
-	// If Quick Reply hasn't been set then set it to be shown but collapsed.
-	if (!isset($regOptions['theme_vars']['display_quick_reply']))
-		$regOptions['theme_vars']['display_quick_reply'] = 1;
-
 	// Check whether we have fields that simply MUST be displayed?
 	$request = $smcFunc['db_query']('', '
 		SELECT col_name, field_name, field_type, field_length, mask, show_reg

+ 2 - 2
Sources/Themes.php

@@ -400,7 +400,7 @@ function SetThemeOptions()
 	}
 
 	// Submit?
-	if (isset($_POST['save']) && empty($_POST['who']))
+	if (isset($_POST['submit']) && empty($_POST['who']))
 	{
 		checkSession();
 		validateToken('admin-sto');
@@ -454,7 +454,7 @@ function SetThemeOptions()
 
 		redirectexit('action=admin;area=theme;' . $context['session_var'] . '=' . $context['session_id'] . ';sa=reset');
 	}
-	elseif (isset($_POST['save']) && $_POST['who'] == 1)
+	elseif (isset($_POST['submit']) && $_POST['who'] == 1)
 	{
 		checkSession();
 		validateToken('admin-sto');