Changeset 99170 in spip-zone


Ignore:
Timestamp:
Aug 14, 2016, 9:27:34 PM (3 years ago)
Author:
rastapopoulos@…
Message:

split() fut dépréciée longtemps, maintenant complètement enlevée de PHP 7. RIP split().

Location:
_plugins_/indexer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/inc/indexer.php

    r93631 r99170  
    227227// code adapté de https://github.com/splitbrain/dokuwiki-plugin-spellcheck/blob/master/spellcheck.php
    228228function indexer_suggestions($mot) {
    229 
    230229        include_spip('lib/aspell');
     230       
    231231        if (!class_exists('Aspell')) {
    232232                spip_log('pas trouvé aspell.php', 'indexer');
     
    246246        }
    247247
    248 
    249248        // go through the result
    250         $lines = split("\n",$out);
     249        $lines = explode("\n",$out);
    251250        $rcnt  = count($lines)-1;    // aspell result count
    252251        for($i=$rcnt; $i>=0; $i--){
  • _plugins_/indexer/trunk/paquet.xml

    r99167 r99170  
    22        prefix="indexer"
    33        categorie="navigation"
    4         version="2.8.0"
     4        version="2.8.1"
    55        etat="test"
    66        compatibilite="[3.0.0;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.