Browse Source

Admin : Display events config link only if the settings is activated

Noel Dieschburg 13 years ago
parent
commit
351dc6b3f1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/admin/index.php

+ 3 - 1
main/admin/index.php

@@ -176,7 +176,9 @@ if(api_is_platform_admin()) {
 	      echo '<li><a href="filler.php">'.get_lang('DataFiller').'</a></li>';
       }
 	  ?>
-	  <li><a href="event_type.php"><?php print  get_lang('events_title') ?></a></li>
+    <?php if (api_get_setting('activate_send_event_by_mail') === 'true'): ?>
+	    <li><a href="event_type.php"><?php print  get_lang('events_title'); ?></a></li>
+    <?php endif ?>
 	 </ul>
 	</div>