X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-logout.php;h=ffc1932f40df194ca14f47b168532c5e47a9c563;hb=f6014bce7255a915872f2f463247440c0d58f9a9;hp=4e7ccf68d6dc8b5da21267e7c8dd3326536aac36;hpb=e5fe5afb17a5c8106f4c890234dfa39419e70f5d;p=mailer.git diff --git a/inc/modules/member/what-logout.php b/inc/modules/member/what-logout.php index 4e7ccf68d6..ffc1932f40 100644 --- a/inc/modules/member/what-logout.php +++ b/inc/modules/member/what-logout.php @@ -14,11 +14,11 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * + * @TODO Rewrite the code to a filter * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * 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 * @@ -44,21 +44,23 @@ if (!defined('__SECURITY')) { } // Base URL for redirection (both cases) -$URL = 'modules.php?module=index&code='; +$url = 'modules.php?module=index&code='; if (destroyMemberSession()) { // Remove theme cookie as well - setTheme(''); + if (isExtensionActive('theme')) { + setTheme(''); + } // END - if // Logout completed - $URL .= getCode('LOGOUT_DONE'); + $url .= getCode('LOGOUT_DONE'); } else { // Cannot logout! :-( - $URL .= getCode('LOGOUT_FAILED'); + $url .= getCode('LOGOUT_FAILED'); } // Load the URL -redirectToUrl($URL); +redirectToUrl($url); // [EOF] ?>