mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
... instead of directly requesting the forum
This commit is contained in:
+2
-6
@@ -195,14 +195,10 @@ SELECT COUNT(*)
|
||||
|
||||
if ($conf['show_piwigo_latest_news'])
|
||||
{
|
||||
$news = get_piwigo_news(0, 1);
|
||||
$latest_news = get_piwigo_news();
|
||||
|
||||
// echo '<pre>'; print_r($news); echo '</pre>';
|
||||
|
||||
if (isset($news['topics']) and isset($news['topics'][0]) and $news['topics'][0]['posted_on'] > time()-60*60*24*30)
|
||||
if (isset($latest_news['id']) and $latest_news['posted_on'] > time()-60*60*24*180)
|
||||
{
|
||||
$latest_news = $news['topics'][0];
|
||||
|
||||
$page['messages'][] = sprintf(
|
||||
'%s <a href="%s" title="%s" target="_blank"><i class="icon-bell"></i> %s</a>',
|
||||
l10n('Latest Piwigo news'),
|
||||
|
||||
Reference in New Issue
Block a user