Overview
SHA1:91f8594d05aa1462afa873adfcb96d0760ea365e
Date: 2017-09-08 03:32:04
User: bohwaz
Comment:Corriger les liens wiki
Timelines: family | ancestors | descendants | both | dev
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2017-09-08
03:33
[1ad952a6fd] Taille moyenne de l'image = 500 pixels, pas 200 (user: bohwaz, tags: dev)
03:32
[91f8594d05] Corriger les liens wiki (user: bohwaz, tags: dev)
02:02
[45f55bea0b] Modernisation : dernières corrections (user: bohwaz, tags: dev)
Changes

Modified src/include/lib/Garradin/Squelette_Filtres.php from [c32ec9672f] to [4eee7b88b4].

155
156
157
158
159
160
161





162
163
164
165
166
167
168
        return str_replace(''', ''', htmlspecialchars($texte, ENT_QUOTES, 'UTF-8'));
    }

    static public function formatter_texte($texte)
    {
        $texte = Utils::SkrivToHTML($texte);
        $texte = self::typo_fr($texte);






        return $texte;
    }

    static public function typo_fr($str, $html = true)
    {
        $space = $html ? ' ' : ' ';







>
>
>
>
>







155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
        return str_replace(''', ''', htmlspecialchars($texte, ENT_QUOTES, 'UTF-8'));
    }

    static public function formatter_texte($texte)
    {
        $texte = Utils::SkrivToHTML($texte);
        $texte = self::typo_fr($texte);

        // Liens wiki
        $texte = preg_replace_callback('!<a href="([^/.:@]+)">!i', function ($matches) {
            return '<a href="' . WWW_URL . Wiki::transformTitleToURI($matches[1]) . '">';
        }, $texte);

        return $texte;
    }

    static public function typo_fr($str, $html = true)
    {
        $space = $html ? '&nbsp;' : ' ';