瀏覽代碼

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>