diff --git a/schedule-config.php b/schedule-config.php index d0f1a0b..da5c9ab 100644 --- a/schedule-config.php +++ b/schedule-config.php @@ -5,8 +5,7 @@ require $requirePath . 'config.php'; require $requirePath . 'load.php'; require $requirePath . 'parse.php'; -$siteurl = get_option('siteurl'); -$year = preg_replace('%.*/([0-9]*)$%', '\1', $siteurl); +$year = get_blog_slug(); $sched_config = getSchedConfig($year);