get language from wp

This commit is contained in:
Vasil Kolev 2017-10-20 01:27:49 +03:00 committed by Openfest
parent ec35c444e4
commit 3e5047028f
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ $year = preg_replace('%.*/([0-9]*)$%', '\1', $siteurl);
$sched_config = getSchedConfig($year); $sched_config = getSchedConfig($year);
$sched_config['lang'] = of_get_lang();
$data = loadData($sched_config); $data = loadData($sched_config);
if ( preg_match('/^workshop/', $pagename) ) { if ( preg_match('/^workshop/', $pagename) ) {