1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Relative Date format changed from "0 mins" to "Just now". Newsfeed admin area now displays last feed refresh time.

This commit is contained in:
Cameron
2016-05-21 09:45:15 -07:00
parent 94d634462f
commit e0b1d87acc
5 changed files with 45 additions and 9 deletions

View File

@@ -144,16 +144,16 @@ class newsfeedClass
if($cachedData !== false && $force === false)
{
// e107::getDebug()->log("NewsFeed Cache Used");
e107::getDebug()->log("NewsFeed Cache Used");
$this->newsList[$feedID]['newsfeed_data'] = $cachedData;
}
if ($force === true) // Need to re-read from source - either no cached data yet, or cache expired
{
e107::getDebug()->log("NewsFeed Update: Item #".$feedID." ".NEWSFEED_NEWS_CACHE_TAG);
if (NEWSFEED_DEBUG)
{
e107::getDebug()->log("NewsFeed Update: Item #".$feedID." ".NEWSFEED_NEWS_CACHE_TAG);
e107::getLog()->e_log_event(10,debug_backtrace(),"DEBUG","Newsfeed update","Refresh item: ".$feedID,FALSE,LOG_TO_ROLLING);
}