Ignore:
Timestamp:
Feb 20, 2010, 4:54:34 PM (14 years ago)
Author:
roby
Message:

Sostituite le funzioni del gruppo ereg perché divenute "deprecate" con il php 5.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/grafici/gd_image.inc.php

    r2 r17  
    450450        }
    451451        else {
    452             if( ereg("\n",$txt) ) {
     452            if( preg_match('/\n/',$txt) ) {
    453453                $tmp = split("\n",$txt);
    454454                for($i=0; $i < count($tmp); ++$i) {
     
    582582        }
    583583
    584         if( !ereg("\n",$txt) || ($dir>0 && ereg("\n",$txt)) ) {
     584        if( !preg_match('/\n/',$txt) || ($dir>0 && preg_match('/\n/',$txt)) ) {
    585585            // Format a single line
    586586
Note: See TracChangeset for help on using the changeset viewer.