Changeset 39353 in spip-zone


Ignore:
Timestamp:
Jul 18, 2010, 9:24:29 PM (9 years ago)
Author:
marcimat@…
Message:

split est déprecated, on utilise explode.

Location:
_plugins_/forms/forms_et_tables_2_0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/forms/forms_et_tables_2_0/inc/forms_edit.php

    r37960 r39353  
    3232        $champ = $type.'_'.strval($n);
    3333        while ($row = spip_fetch_array($res)){
    34                 $lenumero = split('_', $row['champ'] );
     34                $lenumero = explode('_', $row['champ'] );
    3535                $lenumero = intval(end($lenumero));
    3636                if ($lenumero>= $n) $n=$lenumero+1;
     
    6060        $res = spip_query("SELECT choix FROM spip_forms_champs_choix WHERE id_form="._q($id_form)." AND champ="._q($champ));
    6161        while ($row = spip_fetch_array($res)){
    62                 $lenumero = split('_', $row['choix']);
     62                $lenumero = explode('_', $row['choix']);
    6363                $lenumero = intval(end($lenumero));
    6464                if ($lenumero>= $n) $n=$lenumero+1;
  • _plugins_/forms/forms_et_tables_2_0/plugin.xml

    r37231 r39353  
    1313        </auteur>
    1414        <version>
    15         0.305
     15        0.306
    1616        </version>
    1717        <etat>
  • _plugins_/forms/forms_et_tables_2_0/public/forms_criteres_191.php

    r12719 r39353  
    929929      $res[$v]=1;
    930930    else {
    931       foreach (split(" *, *", $v) as $k) {
     931      foreach (explode(" *, *", $v) as $k) {
    932932        $res[$k]=1;
    933933      }
Note: See TracChangeset for help on using the changeset viewer.