Changeset 641 for trunk/services


Ignore:
Timestamp:
Sep 30, 2018 7:55:15 PM (6 years ago)
Author:
anonymous
Message:

Add 'next' and 'nomsg' options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/logout.php

    r611 r641  
    4949}
    5050
    51 $app->raiseMsg(sprintf(_("Your session has been logged-out."), null), MSG_SUCCESS, __FILE__, __LINE__);
    52 $app->dieURL($app->getParam('redirect_home_url'));
     51if (!getFormData('nomsg')) {
     52    $app->raiseMsg(sprintf(_("Your session has been logged-out."), null), MSG_SUCCESS, __FILE__, __LINE__);
     53}
     54if (getFormData('next')) {
     55    $app->dieURL(getFormData('next'));
     56} else {
     57    $app->dieURL($app->getParam('redirect_home_url'));
     58}
    5359
Note: See TracChangeset for help on using the changeset viewer.