X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilter%2Ftheme_filter.php;h=f531016da15cc0ca309596a88ccaa497778e6718;hp=d969424337fd7e0160ff9858cc7a633acc3d5145;hb=20741b93fd58620af677a7f1039ffd16ea6ec689;hpb=964a3b539e335f6d70e7779630fd3d25fd38398d diff --git a/inc/filter/theme_filter.php b/inc/filter/theme_filter.php index d969424337..f531016da1 100644 --- a/inc/filter/theme_filter.php +++ b/inc/filter/theme_filter.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -41,12 +41,12 @@ if (!defined('__SECURITY')) { } // END - if // Filter for generic handling of theme change -function FILTER_HANDLE_THEME_CHANGE ($data) { +function FILTER_HANDLE_THEME_CHANGE ($filterData) { // Check if new theme is selcted //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); - if ((isPostRequestParameterSet('new_theme')) && (postRequestParameter('new_theme') != getCurrentTheme())) { + if ((isPostRequestElementSet('new_theme')) && (postRequestElement('new_theme') != getCurrentTheme())) { // Set new theme for guests - $newTheme = postRequestParameter('new_theme'); + $newTheme = postRequestElement('new_theme'); // Change to new theme setTheme($newTheme); @@ -63,12 +63,13 @@ function FILTER_HANDLE_THEME_CHANGE ($data) { // Return data //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); - return $data; + return $filterData; } // Filter for settings theme from user profile, must be executed only if FILTER_FETCH_USER_DATA() ran before -function FILTER_SET_USERS_THEME ($data) { +function FILTER_SET_USERS_THEME ($filterData) { // Is the user data valid? + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); if (!isMember()) { // Do only run for logged in members debug_report_bug(__FUNCTION__, __LINE__, 'Please only run this filter for logged in users.'); @@ -79,7 +80,7 @@ function FILTER_SET_USERS_THEME ($data) { // Return data //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); - return $data; + return $filterData; } // [EOF]