Forums / Cotonti / Extensions / [Release] Events and Calendar v2.0

Ported from Seditio

BESTRAFER
#25912 2010-09-02 21:37
Conflicts with php 5.3:
Function ereg_replace() is deprecated - now is preg_repalce()
Tell me how i can fix it.. plz

$n_c = date("F",mktime(0,0,0,$n,1,$y));
$n_c = ereg_replace($n_c,$L_month[$n_c],$n_c);
$n_c .= date(" Y",mktime(0,0,0,$n,1,$y));
$n_p = date("F",mktime(0,0,0,$n-1,1,$y));
$n_p = ereg_replace($n_p,$L_month[$n_p],$n_p);
$n_p .= date("",mktime(0,0,0,$n-1,1,$y));
$n_n = date("F",mktime(0,0,0,$n+1,1,$y));
$n_n = ereg_replace($n_n,$L_month[$n_n],$n_n);
$n_n .= date("",mktime(0,0,0,$n+1,1,$y));

!!!!
----
wow.. its work when ereg_replace -> str_replace

$n_c = date("F",mktime(0,0,0,$n,1,$y));
$n_c = str_replace($n_c,$L_month[$n_c],$n_c);
$n_c .= date(" Y",mktime(0,0,0,$n,1,$y));
$n_p = date("F",mktime(0,0,0,$n-1,1,$y));
$n_p = str_replace($n_p,$L_month[$n_p],$n_p);
$n_p .= date("",mktime(0,0,0,$n-1,1,$y));
$n_n = date("F",mktime(0,0,0,$n+1,1,$y));
$n_n = str_replace($n_n,$L_month[$n_n],$n_n);
$n_n .= date("",mktime(0,0,0,$n+1,1,$y));

Fix it, plz, in archive (files: calendar_idx.php & calendar.php)
Лучший способ рассмешить бога - рассказать ему о своих планах на будущее...
This post was edited by BESTRAFER (2010-09-02 21:58, 13 years ago)