mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Removed Months and Days from language files. Replaced with strftime() functions. New 'terms' method added to Date handler.
eg. e107::getDate()->terms('month'); returns an array of month names in the current language.
This commit is contained in:
@@ -30,9 +30,10 @@ require_once(HEADERF);
|
||||
// ---------------------
|
||||
$bcSql = new db;
|
||||
$prefix = e_PLUGIN_ABS."blogcalendar_menu";
|
||||
$marray = array(BLOGCAL_M1, BLOGCAL_M2, BLOGCAL_M3, BLOGCAL_M4,
|
||||
BLOGCAL_M5, BLOGCAL_M6, BLOGCAL_M7, BLOGCAL_M8,
|
||||
BLOGCAL_M9, BLOGCAL_M10, BLOGCAL_M11, BLOGCAL_M12);
|
||||
$marray = e107::getDate()->terms('month');
|
||||
|
||||
|
||||
|
||||
// if nr of rows per month is not set, default to 3
|
||||
$months_per_row = $pref['blogcal_mpr']?$pref['blogcal_mpr']:
|
||||
"3";
|
||||
|
Reference in New Issue
Block a user