Regional setting change and stay on the same page

Developer
Da Cyprus
Membro dal ott 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'] : '');
      }

Questo thread è stato chiuso per lunga inattività. Non è possibile postare su di esso.
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.