diff --git a/e107_handlers/Shims/Internal/StrptimeTrait.php b/e107_handlers/Shims/Internal/StrptimeTrait.php index 29ab6441b..21feef617 100644 --- a/e107_handlers/Shims/Internal/StrptimeTrait.php +++ b/e107_handlers/Shims/Internal/StrptimeTrait.php @@ -13,7 +13,7 @@ namespace e107\Shims\Internal; use DateTimeZone; -use e_date; +use eShims; /** * @@ -83,10 +83,10 @@ trait StrptimeTrait for ($i = 1; $i <= 12; $i++) { - $k = @strftime('%B', mktime(0, 0, 0, $i)); + $k = eShims::strftime('%B', mktime(0, 0, 0, $i)); $fullmonth[$k] = $i; - $j = @strftime('%b', mktime(0, 0, 0, $i)); + $j = eShims::strftime('%b', mktime(0, 0, 0, $i)); $abrevmonth[$j] = $i; } diff --git a/e107_plugins/faqs/e_cron.php b/e107_plugins/faqs/e_cron.php index 3fe93862d..7bd84a60f 100644 --- a/e107_plugins/faqs/e_cron.php +++ b/e107_plugins/faqs/e_cron.php @@ -22,10 +22,10 @@ $siteadminemail = e107::pref('core','siteadminemail'); $cron[] = array( - 'name' => LANA_FAQ_CRON_1, + 'name' => defset('LANA_FAQ_CRON_1'), 'function' => "unanswered", 'category' => "notify", - 'description' => $tp->lanVars(LANA_FAQ_CRON_2, $siteadminemail) + 'description' => $tp->lanVars(defset('LANA_FAQ_CRON_2'), $siteadminemail) ); return $cron; @@ -60,7 +60,7 @@ // $questions = array( "Test Question
".$tp->toDate(time(),'short').""); - $name = SITENAME." ".LAN_AUTOMATION; + $name = SITENAME." ".defset('LAN_AUTOMATION'); $email = e107::pref('core','siteadminemail'); $name = e107::pref('core','siteadmin');