Ticket #363: init_php.php.diff

File init_php.php.diff, 446 bytes (added by anonymous, 15 years ago)
  • init_php.php

    old new  
    130130{ 
    131131    // Set timezone if PHP version >= 5.1.0 
    132132    if (str_replace(".", "", phpversion()) >= 510) { 
    133         date_default_timezone_set(defined(DATE_TIMEZONE) ? DATE_TIMEZONE : "Canada/Eastern"); 
     133        date_default_timezone_set(defined('DATE_TIMEZONE') ? DATE_TIMEZONE : "Canada/Eastern"); 
    134134    } 
    135135} 
    136136