Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
extension: adopt typed paramBoolean method (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfactum authored Dec 24, 2023
1 parent c28b2a2 commit 4bfd932
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xExtension-GReaderRedate/extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public function handleConfigureAction()
{
if (Minz_Request::isPost())
{
FreshRSS_Context::$user_conf->gr_reeder_enable = (bool)Minz_Request::param('gr_reeder', 0);
FreshRSS_Context::$user_conf->gr_easyrss_enable = (bool)Minz_Request::param('gr_easyrss', 0);
FreshRSS_Context::$user_conf->gr_feedme_enable = (bool)Minz_Request::param('gr_feedme', 0);
FreshRSS_Context::$user_conf->gr_reeder_enable = Minz_Request::paramBoolean('gr_reeder');
FreshRSS_Context::$user_conf->gr_easyrss_enable = Minz_Request::paramBoolean('gr_easyrss');
FreshRSS_Context::$user_conf->gr_feedme_enable = Minz_Request::paramBoolean('gr_feedme');

FreshRSS_Context::$user_conf->save();
}
Expand Down

0 comments on commit 4bfd932

Please sign in to comment.