X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=misc.php;h=de42d621528f38e5f7ead35e6203b0047df41d1c;hp=528053c759bec7646c683c87904b51f08cfb0173;hb=9a3136a5bee66e1055ffb566373952b6054dd7bf;hpb=ed9f5e17ae1badc235382bf4571d316108ee88a9 diff --git a/misc.php b/misc.php index 528053c..de42d62 100644 --- a/misc.php +++ b/misc.php @@ -119,7 +119,7 @@ function this_year() { # return the number of the current month (1..12) function this_month() { - return ereg_replace('^0', '', strftime('%m')); + return preg_replace('|^0|', '', strftime('%m')); } # return today's date in yyyy-mm-dd format