Overview
Comment:Ajout signal plugin à l'initialisation de SkrivML, cf. [b7f19b5b01d3a531c0d9a4800c508f092815a816]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 3d5e15e89fc10bfb5099c3d4818bde5001b7e654
User & Date: bohwaz on 2017-07-04 01:43:54
Other Links: branch diff | manifest | tags
References
2017-07-04
01:44 Fixed ticket [b7f19b5b01]: Extensions Skriv plus 5 other changes artifact: 655fdacf99 user: bohwaz
Context
2017-07-04
14:31
Amélioration ergonomie info bulles cf [602d0a6511] check-in: 70257ac725 user: bohwaz tags: dev
01:43
Ajout signal plugin à l'initialisation de SkrivML, cf. [b7f19b5b01d3a531c0d9a4800c508f092815a816] check-in: 3d5e15e89f user: bohwaz tags: dev
2017-07-03
07:30
Modernisation objets comptes check-in: bbf4e7b183 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Utils.php from [ac170902ce] to [04f73b6305].

341
342
343
344
345
346
347



348
349
350
351
352
353
354
    static public function SkrivToHTML($str)
    {
        if (!self::$skriv)
        {
            self::$skriv = new \KD2\SkrivLite;
            self::$skriv->registerExtension('fichier', ['\\Garradin\\Fichiers', 'SkrivFichier']);
            self::$skriv->registerExtension('image', ['\\Garradin\\Fichiers', 'SkrivImage']);



        }

        $skriv =& self::$skriv;

        $str = preg_replace_callback('/(fichier|image):\/\/(\d+)/', function ($match) use ($skriv) {
            try {
                $file = new Fichiers((int)$match[2]);







>
>
>







341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
    static public function SkrivToHTML($str)
    {
        if (!self::$skriv)
        {
            self::$skriv = new \KD2\SkrivLite;
            self::$skriv->registerExtension('fichier', ['\\Garradin\\Fichiers', 'SkrivFichier']);
            self::$skriv->registerExtension('image', ['\\Garradin\\Fichiers', 'SkrivImage']);

            // Enregistrer d'autres extensions éventuellement
            Plugin::fireSignal('skriv.init', ['skriv' => self::$skriv]);
        }

        $skriv =& self::$skriv;

        $str = preg_replace_callback('/(fichier|image):\/\/(\d+)/', function ($match) use ($skriv) {
            try {
                $file = new Fichiers((int)$match[2]);