X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=misc.php;h=de42d621528f38e5f7ead35e6203b0047df41d1c;hb=84a6325c7819e0a331e1ba87e745a469e249027e;hp=528053c759bec7646c683c87904b51f08cfb0173;hpb=ed9f5e17ae1badc235382bf4571d316108ee88a9;p=wfpl.git 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