[Fusionforge-commits] r16397 - trunk/src/www/admin

Franck VILLAUME nerville at fusionforge.org
Sun Sep 30 18:07:27 CEST 2012


Author: nerville
Date: 2012-09-30 18:07:26 +0200 (Sun, 30 Sep 2012)
New Revision: 16397

Modified:
   trunk/src/www/admin/index.php
Log:
check config use_news when needed

Modified: trunk/src/www/admin/index.php
===================================================================
--- trunk/src/www/admin/index.php	2012-09-30 15:56:03 UTC (rev 16396)
+++ trunk/src/www/admin/index.php	2012-09-30 16:07:26 UTC (rev 16397)
@@ -177,13 +177,17 @@
 		echo $plugins_site_admin_project_html;
 		echo '</ul>';
 	}
+
+
+if(forge_get_config('use_news')) {
 ?>
-
 <h2><?php echo _('News'); ?></h2>
 <ul>
 	<li><?php echo util_make_link ('/admin/pending-news.php',_('Pending news (moderation for front-page)')); ?></li>
 </ul>
+<?php } ?>
 
+
 <h2><?php echo _('Stats'); ?></h2>
 <ul>
 	<li><?php echo util_make_link('/stats/',_('Site-Wide Stats')); ?></li>




More information about the Fusionforge-commits mailing list