Ignore:
Timestamp:
04/27/12 09:17:30 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/spell_checker/spell_checker.php

    r3400 r6057  
    197197 
    198198        //splits the string on any html tags, preserving the tags and putting them in the $words array 
    199         $words = preg_split("/(<[^<>]*>)/", $string, -1, PREG_SPLIT_DELIM_CAPTURE); 
     199        $words = preg_split('/(<[^<>]*>)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE); 
    200200 
    201201        $numResults = count($words); //the number of elements in the array. 
     
    215215                if(($i & 1) == 0) // Even-numbered entries are word sets. 
    216216                { 
    217                         $words[$i] = preg_split("/(\s+|\&nbsp;)/", $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 
     217                        $words[$i] = preg_split('/(\s+|\&nbsp;)/', $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 
    218218 
    219219                        // Now go through each word and link up the misspelled ones. 
Note: See TracChangeset for help on using the changeset viewer.