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