Changeset 6057 for trunk/workflow
- Timestamp:
- 04/27/12 09:17:30 (12 years ago)
- Location:
- trunk/workflow/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/phplot/phplot.php
r5934 r6057 942 942 // Split the text by its lines, and count them 943 943 $which_text = preg_replace('/\r/', '', $which_text); 944 $str = split("\n", $which_text);944 $str = preg_split('/\n/', $which_text); 945 945 $nlines = count($str); 946 946 $spacing = $this->line_spacing * ($nlines - 1); … … 1480 1480 } 1481 1481 1482 $str = split("\n", $which_title);1482 $str = preg_split('/\n/', $which_title); 1483 1483 $lines = count($str); 1484 1484 $spacing = $this->line_spacing * ($lines - 1); … … 1505 1505 $this->x_title_txt = $which_xtitle; 1506 1506 1507 $str = split("\n", $which_xtitle);1507 $str = preg_split('/\n/', $which_xtitle); 1508 1508 $lines = count($str); 1509 1509 $spacing = $this->line_spacing * ($lines - 1); … … 1532 1532 $this->y_title_txt = $which_ytitle; 1533 1533 1534 $str = split("\n", $which_ytitle);1534 $str = preg_split('/\n/', $which_ytitle); 1535 1535 $lines = count($str); 1536 1536 $spacing = $this->line_spacing * ($lines - 1); -
trunk/workflow/inc/smarty/plugins/function.fetch.php
r795 r6057 182 182 } 183 183 fclose($fp); 184 $csplit = split("\r\n\r\n",$content,2);184 $csplit = preg_split('/\r\n\r\n/',$content,2); 185 185 186 186 $content = $csplit[1]; 187 187 188 188 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])); 190 190 } 191 191 }
Note: See TracChangeset
for help on using the changeset viewer.