Переглянути джерело

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

fix https://github.com/FreshRSS/FreshRSS/issues/7272
Alexandre Alapetite 8 місяців тому
батько
коміт
8a44d1045a
1 змінених файлів з 2 додано та 0 видалено
  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>