# HG changeset patch # User Matti Hamalainen # Date 1382821067 -10800 # Node ID 0b5c22e253e1b814feac7c8712c8a87ffaec1782 # Parent 96aae4beb55842476a13486a6a1cd27b32ed369f Show 2 latest news items on the about page. diff -r 96aae4beb558 -r 0b5c22e253e1 about.inc.php --- a/about.inc.php Fri Oct 25 22:46:55 2013 +0300 +++ b/about.inc.php Sat Oct 26 23:57:47 2013 +0300 @@ -2,7 +2,7 @@ echo stGetSetting("aboutDescription"); if (stGetSetting("showNewsOnAbout") && - ($res = stExecSQL("SELECT * FROM news ORDER BY utime DESC LIMIT 1")) !== FALSE) + ($res = stExecSQL("SELECT * FROM news ORDER BY utime DESC LIMIT 2")) !== FALSE) { foreach ($res as $item) stPrintNewsItem($item);