diff --git a/configure.phtml b/configure.phtml index 87eac9b..d645d43 100644 --- a/configure.phtml +++ b/configure.phtml @@ -1,13 +1,13 @@ kagi_api_key; + $kagi_api_key = FreshRSS_Context::$user_conf->kagi_api_key; ?>
- +
- +
diff --git a/extension.php b/extension.php index 4a0e686..50defc8 100644 --- a/extension.php +++ b/extension.php @@ -16,8 +16,7 @@ class KagiSummarizerExtension extends Minz_Extension { $this->registerTranslates(); if (Minz_Request::isPost()) { - $api_key = Minz_Request::param('api_key', ''); - FreshRSS_Context::$user_conf->kagi_api_key = $api_key; + FreshRSS_Context::$user_conf->kagi_api_key = Minz_Request::param('kagi_api_key', ''); FreshRSS_Context::$user_conf->save(); } } diff --git a/i18n/en/ext.php b/i18n/en/ext.php index 7b0fea6..091c06b 100644 --- a/i18n/en/ext.php +++ b/i18n/en/ext.php @@ -3,7 +3,7 @@ return array( 'kagiSummarizer' => array( 'configure' => array( - 'api_key' => 'Kagi API Key' + 'kagi_api_key' => 'Kagi API Key' ) ) );