Skip to content

Commit

Permalink
Quick reply is no more special than any other theme option
Browse files Browse the repository at this point in the history
+ fixed a couple of submit in the admin themes section

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed May 27, 2012
1 parent 3ccb681 commit 20046a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions Sources/Register.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -379,10 +379,6 @@ function Register2($verifiedOpenID = false)
// Make sure they are clean, dammit! // Make sure they are clean, dammit!
$regOptions['theme_vars'] = htmlspecialchars__recursive($regOptions['theme_vars']); $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? // Check whether we have fields that simply MUST be displayed?
$request = $smcFunc['db_query']('', ' $request = $smcFunc['db_query']('', '
SELECT col_name, field_name, field_type, field_length, mask, show_reg SELECT col_name, field_name, field_type, field_length, mask, show_reg
Expand Down
4 changes: 2 additions & 2 deletions Sources/Themes.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ function SetThemeOptions()
} }


// Submit? // Submit?
if (isset($_POST['save']) && empty($_POST['who'])) if (isset($_POST['submit']) && empty($_POST['who']))
{ {
checkSession(); checkSession();
validateToken('admin-sto'); validateToken('admin-sto');
Expand Down Expand Up @@ -454,7 +454,7 @@ function SetThemeOptions()


redirectexit('action=admin;area=theme;' . $context['session_var'] . '=' . $context['session_id'] . ';sa=reset'); 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(); checkSession();
validateToken('admin-sto'); validateToken('admin-sto');
Expand Down

0 comments on commit 20046a5

Please sign in to comment.