use latest helper namespace
This commit is contained in:
parent
39a1c6debf
commit
76b78278e0
@ -17,10 +17,10 @@ namespace Dotclear\Plugin\fac;
|
|||||||
use context;
|
use context;
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use dcNsProcess;
|
use dcNsProcess;
|
||||||
|
use Dotclear\Helper\Date;
|
||||||
use Dotclear\Helper\Html\Html;
|
use Dotclear\Helper\Html\Html;
|
||||||
|
use Dotclear\Helper\Network\Feed\Reader;
|
||||||
use Exception;
|
use Exception;
|
||||||
use dt;
|
|
||||||
use feedReader;
|
|
||||||
|
|
||||||
class Frontend extends dcNsProcess
|
class Frontend extends dcNsProcess
|
||||||
{
|
{
|
||||||
@ -102,7 +102,7 @@ class Frontend extends dcNsProcess
|
|||||||
$cache = is_dir(DC_TPL_CACHE . '/fac') ? DC_TPL_CACHE . '/fac' : null;
|
$cache = is_dir(DC_TPL_CACHE . '/fac') ? DC_TPL_CACHE . '/fac' : null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$feed = feedReader::quickParse($fac_url->f('meta_id'), $cache);
|
$feed = Reader::quickParse($fac_url->f('meta_id'), $cache);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$feed = null;
|
$feed = null;
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ class Frontend extends dcNsProcess
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($feed->items as $item) {
|
foreach ($feed->items as $item) {
|
||||||
# Format date
|
# Format date
|
||||||
$date = dt::dt2str($dateformat, $item->pubdate);
|
$date = Date::dt2str($dateformat, $item->pubdate);
|
||||||
|
|
||||||
# Entries title
|
# Entries title
|
||||||
$title = context::global_filters(
|
$title = context::global_filters(
|
||||||
|
Loading…
Reference in New Issue
Block a user