Mercurial > hg > fapweb
changeset 159:0b5c22e253e1
Show 2 latest news items on the about page.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 Oct 2013 23:57:47 +0300 |
parents | 96aae4beb558 |
children | 0980e705dea0 |
files | about.inc.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);