Regional setting change and stay on the same page

Developer
Od Cyprus
Użytkownik od paź 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'] : '');
      }

Ten wątek został zamknięty z powodu zbyt długiej nieaktywności. Przesyłanie nowych odpowiedzi nie jest teraz możliwe.
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.