Changeset 112951 in spip-zone


Ignore:
Timestamp:
Dec 19, 2018, 3:13:03 PM (4 weeks ago)
Author:
root
Message:

function de rappel correct (fonction anonyme)

Location:
_plugins_/article_pdf/branches/php7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/article_pdf/branches/php7/paquet.xml

    r112785 r112951  
    22        prefix="article_pdf"
    33        categorie="edition"
    4         version="1.0.5"
     4        version="1.0.6"
    55        etat="test"
    66        compatibilite="[3.1.0;3.2.*]"
  • _plugins_/article_pdf/branches/php7/pdf/lib_pdf_global.php

    r112785 r112951  
    8484        $trans_tbl = array_flip ($trans_tbl);
    8585        $ret = strtr ($string, $trans_tbl);
    86         return preg_replace_callback('/&#(\d+);/m', chr($matches[1]),$ret);
     86        return preg_replace_callback('/&#(\d+);/m',
     87                function ($m) {
     88                        return chr($m[1]);
     89                },
     90                $ret);
    8791}
    8892
Note: See TracChangeset for help on using the changeset viewer.