Overview
Comment:Corriger les liens wiki
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 91f8594d05aa1462afa873adfcb96d0760ea365e
User & Date: bohwaz on 2017-09-08 03:32:04
Other Links: branch diff | manifest | tags
Context
2017-09-08
03:33
Taille moyenne de l'image = 500 pixels, pas 200 check-in: 1ad952a6fd user: bohwaz tags: dev
03:32
Corriger les liens wiki check-in: 91f8594d05 user: bohwaz tags: dev
02:02
Modernisation : dernières corrections check-in: 45f55bea0b 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;' : ' ';