Regional setting change and stay on the same page

Developer
From Cyprus
Member since oct. 2017

I did not like the redirect to home page after changing regional settings and 
here is my code to stay on current page for anyone is interested

in /pages/regional_settings.inc.php
find and change/replace

<!--change from-->
if (!empty($_GET['redirect_url'])) {
        $redirect_url = new ent_link($_GET['redirect_url']);
        $redirect_url->host = '';
      } else {
        $redirect_url = document::ilink('', [], null, [], !empty($_POST['language_code']) ? $_POST['language_code'] : '');
      }

<!--to-->
if (!empty($_GET['redirect_url'])) {
        $redirect_url = new ent_link($_GET['redirect_url']);
        $redirect_url->host = '';
      } else {
        $redirect_url = new  ent_link($_SERVER["HTTP_REFERER"], [], null, [], !empty($_POST['language_code']) ? $_POST['language_code'] : '');
      }

Acest thread a fost închis din cauza inactivității îndelungate. Postarea pe acesta nu mai este posibilă.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.