Explorar o código

Honor "disable update" on index page (#7733)

fix https://github.com/FreshRSS/FreshRSS/issues/7272
Alexandre Alapetite hai 9 meses
pai
achega
8a44d1045a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/views/update/index.phtml

+ 2 - 0
app/views/update/index.phtml

@@ -48,6 +48,7 @@
 		</div>
 	</div>
 
+	<?php if (!FreshRSS_Context::systemConf()->disable_update): ?>
 	<div class="form-group">
 		<label class="group-name"><?= _t('admin.update.last') ?></label>
 		<div class="group-controls">
@@ -73,4 +74,5 @@
 		</div>
 	</div>
 	<?php } ?>
+	<?php endif; ?>
 </main>