Posted on: 01/19/04 04:12am
By: Anonymous (tokyoahead)
Posted on: 01/19/04 11:03am
By: Blaine
if ($A['featured'] == 1) { $display .= PLG_showCenterblock (2, $page, $topic); }Thus it will only call the Plugin Function to show the centerblock after the Featured Story if there is a featured story. I think thats an unnecessary check.
Posted on: 01/20/04 10:52pm
By: Blaine
for ($x = 1; $x <= $nrows; $x++) { $A = DB_fetchArray($result); if ($A['featured'] == 1) { $feature = 'true'; } elseif (($x == 1) && ($_CONF['showfirstasfeatured'] == 1)) { $feature = 'true'; $A['featured'] = 1; } elseif ($x == 1) { $display .= PLG_showCenterblock (2, $page, $topic); } $display .= COM_article($A,'y'); if ($A['featured'] == 1) { $display .= PLG_showCenterblock (2, $page, $topic); } }