Преглед на файлове

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

fix https://github.com/FreshRSS/FreshRSS/issues/7272
Alexandre Alapetite преди 10 месеца
родител
ревизия
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>