Explorar o código

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

Noel Dieschburg %!s(int64=13) %!d(string=hai) anos
pai
achega
351dc6b3f1
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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>