Ignore:
Timestamp:
Jul 27, 2009, 3:26:42 AM (12 years ago)
Author:
gilles.vincent@…
Message:

[30252] suite : split est deprecie en 5.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/agenda/1_9_2/inc/agenda_saisie_rapide.php

    r13779 r30253  
    1212function Agenda_retourne_liste_mots($texte) {
    1313        $texte = preg_replace("/[\|\s\t\n\r]+/", " ", $texte);
    14         $split = split('"', $texte);
     14        $split = explode('"', $texte);
    1515        $c = count($split);
    1616        for($i=0; $i<$c; $i++) if ($i & 1) $split[$i] = preg_replace('/[ ,]+/', '+', trim($split[$i]));
     
    1818        $texte = preg_replace("/ *,+ */","\t", $texte);
    1919        $texte = preg_replace("/\++/"," ", $texte);
    20         return array_unique(split("\t", trim($texte)));
     20        return array_unique(preg_split(",\t,", trim($texte)));
    2121}
    2222
Note: See TracChangeset for help on using the changeset viewer.