Changeset 6057 for trunk/workflow


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

Location:
trunk/workflow/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/phplot/phplot.php

    r5934 r6057  
    942942            // Split the text by its lines, and count them 
    943943            $which_text = preg_replace('/\r/', '', $which_text); 
    944             $str = split("\n", $which_text); 
     944            $str = preg_split('/\n/', $which_text); 
    945945            $nlines = count($str); 
    946946            $spacing = $this->line_spacing * ($nlines - 1); 
     
    14801480        } 
    14811481 
    1482         $str = split("\n", $which_title); 
     1482        $str = preg_split('/\n/', $which_title); 
    14831483        $lines = count($str); 
    14841484        $spacing = $this->line_spacing * ($lines - 1); 
     
    15051505        $this->x_title_txt = $which_xtitle; 
    15061506 
    1507         $str = split("\n", $which_xtitle); 
     1507        $str = preg_split('/\n/', $which_xtitle); 
    15081508        $lines = count($str); 
    15091509        $spacing = $this->line_spacing * ($lines - 1); 
     
    15321532        $this->y_title_txt = $which_ytitle; 
    15331533 
    1534         $str = split("\n", $which_ytitle); 
     1534        $str = preg_split('/\n/', $which_ytitle); 
    15351535        $lines = count($str); 
    15361536        $spacing = $this->line_spacing * ($lines - 1); 
  • trunk/workflow/inc/smarty/plugins/function.fetch.php

    r795 r6057  
    182182                    } 
    183183                    fclose($fp); 
    184                     $csplit = split("\r\n\r\n",$content,2); 
     184                    $csplit = preg_split('/\r\n\r\n/',$content,2); 
    185185 
    186186                    $content = $csplit[1]; 
    187187 
    188188                    if(!empty($params['assign_headers'])) { 
    189                         $smarty->assign($params['assign_headers'],split("\r\n",$csplit[0])); 
     189                        $smarty->assign($params['assign_headers'],preg_split('/\r\n/',$csplit[0])); 
    190190                    } 
    191191                } 
Note: See TracChangeset for help on using the changeset viewer.