1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Issue #1669 - incorrect shortcode object

This commit is contained in:
Cameron
2016-05-24 11:08:22 -07:00
parent be41e46306
commit f91eaacda9
3 changed files with 30 additions and 7 deletions

View File

@@ -258,9 +258,9 @@ if (isset($id))
else
{
// $userList = $sql->db_getList();
$text = $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);
$sc = e107::getScBatch('user');
$text = $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $sc);
foreach ($data as $row)
{
$loop_uid = $row['user_id'];
@@ -269,9 +269,10 @@ if (isset($id))
$sc->setVars($row);
$sc->wrapper('user/list');
$text .= $tp->parseTemplate($USER_SHORT_TEMPLATE, TRUE, $user_shortcodes);
$text .= $tp->parseTemplate($USER_SHORT_TEMPLATE, TRUE, $sc);
}
$text .= $tp->parseTemplate($USER_SHORT_TEMPLATE_END, TRUE, $user_shortcodes);
$text .= $tp->parseTemplate($USER_SHORT_TEMPLATE_END, TRUE, $sc);
}
$ns->tablerender(LAN_USER_52, $text);