1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Fix for {NAV_CLASS}

This commit is contained in:
Cameron
2020-12-27 14:30:51 -08:00
parent e66d3f32de
commit 0215ef4404

View File

@@ -1648,8 +1648,8 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
$sc->navClass = $opts['class']; $sc->navClass = $opts['class'];
} }
$head = e107::getParser()->parseTemplate($template['start'],true); $head = e107::getParser()->parseTemplate($template['start'], true, $sc);
$foot = e107::getParser()->parseTemplate($template['end'],true);
$ret = ""; $ret = "";
$sc->counter = 1; $sc->counter = 1;
@@ -1669,7 +1669,9 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
} }
$sc->counter++; $sc->counter++;
} }
$foot = e107::getParser()->parseTemplate($template['end'], true, $sc);
return ($ret != '') ? $head.$ret.$foot : ''; return ($ret != '') ? $head.$ret.$foot : '';
} }