From 43f83c1ca4317cf6884edc035b07e8aa3b7ad044 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Mon, 16 Oct 2023 20:58:57 +0300 Subject: [PATCH] Get schedule year from blog slug --- schedule-config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);