mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Shortcode parser: variable/methods name fix, news event trigger mentioned by the recent commit
This commit is contained in:
5
news.php
5
news.php
@@ -204,7 +204,10 @@ if ($action == 'cat' || $action == 'all')
|
||||
$param['catlink'] = (defined("NEWSLIST_CATLINK")) ? NEWSLIST_CATLINK : "";
|
||||
$param['caticon'] = (defined("NEWSLIST_CATICON")) ? NEWSLIST_CATICON : ICONSTYLE;
|
||||
$param['current_action'] = $action;
|
||||
|
||||
|
||||
// NEW - allow news batch shortcode override (e.g. e107::getScBatch('news', 'myplugin', true); )
|
||||
e107::getEvent()->trigger('news_list_parse', $newsList);
|
||||
|
||||
foreach($newsList as $row)
|
||||
{
|
||||
$text .= $ix->render_newsitem($row, 'return', '', $NEWSLISTSTYLE, $param);
|
||||
|
Reference in New Issue
Block a user