1
0
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:
secretr
2010-04-25 15:04:53 +00:00
parent e0c8e76f70
commit 78e85fb0ed
3 changed files with 18 additions and 16 deletions

View File

@@ -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);