Skip to content
Browse files

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 <emanuele45@gmail.com>
  • Loading branch information...
1 parent 3ccb681 commit 20046a54657541effef06597bb1d01f76c9a72d7 @emanuele45 committed May 26, 2012
Showing with 2 additions and 6 deletions.
  1. +0 −4 Sources/Register.php
  2. +2 −2 Sources/Themes.php
View
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
View
4 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');

0 comments on commit 20046a5

Please sign in to comment.
Something went wrong with that request. Please try again.