From a8601314e7dfc2aebdbc406a7c7b5400d32e1920 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Mon, 25 Sep 2023 12:00:39 -0500 Subject: [PATCH] attempt to fix config --- configure.phtml | 6 +++--- extension.php | 3 +-- i18n/en/ext.php | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) 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' ) ) );