* -------------------------------------------------------------------- *
* 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 *
} // END - if
// Filter for generic handling of theme change
-function FILTER_HANDLE_THEME_CHANGE () {
+function FILTER_HANDLE_THEME_CHANGE ($filterData) {
// Check if new theme is selcted
- if ((isPostRequestParameterSet('new_theme')) && (postRequestParameter('new_theme') != getCurrentTheme())) {
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
+ 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);
// Redirect to same URL
redirectToRequestUri();
} // END - if
+
+ // Return data
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+ 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 () {
+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.');
// Change to new theme
setTheme(getUserData('curr_theme'));
+
+ // Return data
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+ return $filterData;
}
// [EOF]