Sfoglia il codice sorgente

Fix: API mangement section in profile page (#6314)

maTh 2 anni fa
parent
commit
0ffcf41f93
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/views/user/profile.phtml

+ 1 - 1
app/views/user/profile.phtml

@@ -75,8 +75,8 @@
 		</div>
 		</div>
 	</form>
 	</form>
 
 
-	<h2><?= _t('conf.profile.api') ?></h2>
 	<?php if (FreshRSS_Context::systemConf()->api_enabled) { ?>
 	<?php if (FreshRSS_Context::systemConf()->api_enabled) { ?>
+		<h2><?= _t('conf.profile.api') ?></h2>
 		<form method="post" action="<?= _url('api', 'updatePassword') ?>">
 		<form method="post" action="<?= _url('api', 'updatePassword') ?>">
 			<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
 			<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />