Changeset 124698 in spip-zone


Ignore:
Timestamp:
May 15, 2020, 8:11:59 AM (7 weeks ago)
Author:
Matthieu Marcillaud
Message:

Compat PHP 7.2, deprecated create_function.

Location:
_plugins_/etiquettes/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/etiquettes/trunk

    • Property subgit:lock:2655e64b72af53290effd3a3f703f409d6558aa0 set to 2020-05-15T11:11:38.075
  • _plugins_/etiquettes/trunk/etiquettes_options.php

    r103864 r124698  
    1818
    1919        $elements = compact("groupe", "type_objet", "id_objet");
    20         $operations = create_function(
    21                 '$e',
    22                 'return str_replace(
     20        $operations = function($e) {
     21                return str_replace(
    2322                        " ",
    2423                        "_",
     
    3635                                )
    3736                        )
    38                 );'
    39         );
     37                );
     38        };
    4039       
    4140        $elements = array_map($operations, $elements);
Note: See TracChangeset for help on using the changeset viewer.