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/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); 
Note: See TracChangeset for help on using the changeset viewer.