Overview
SHA1:de68f0e460f3e0c8198aa04bca6de6587e38f90b
Date: 2018-03-20 11:05:01
User: bohwaz
Comment:Fix self_url utilisait www_url au lieu de admin_url
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-03-20
11:06
[6c563e7636] Fix /admin en double dans les URL (user: bohwaz, tags: trunk, stable)
11:05
[de68f0e460] Fix self_url utilisait www_url au lieu de admin_url (user: bohwaz, tags: trunk, stable)
2018-03-12
05:16
[6539b98f9e] Ajout de la config vhost en commentaire, cf. [571c5487217aaf65e27c4083f96a6f5b927b9392] (user: bohwaz, tags: trunk)
Changes

Modified src/include/lib/Garradin/Utils.php from [b5a3dd5526] to [08b1ced9c0].

136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
        }

        if (is_array($qs))
        {
            $uri .= '?' . http_build_query($qs);
        }

        return WWW_URL . $uri;
    }

    public static function redirect($destination=false, $exit=true)
    {
        if (empty($destination) || !preg_match('/^https?:\/\//', $destination))
        {
            if (empty($destination))







|







136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
        }

        if (is_array($qs))
        {
            $uri .= '?' . http_build_query($qs);
        }

        return ADMIN_URL . $uri;
    }

    public static function redirect($destination=false, $exit=true)
    {
        if (empty($destination) || !preg_match('/^https?:\/\//', $destination))
        {
            if (empty($destination))