Skip to content

Commit

Permalink
Fixed missing settings
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindavid committed Nov 28, 2023
1 parent edc7fc8 commit ae79bf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ public function actionIndex(): Response
{
$isOauthProviderConfigured = Analytics::$plugin->getAnalytics()->isOauthProviderConfigured();

$plugin = Craft::$app->getPlugins()->getPlugin('analytics');
$settings = $plugin->getSettings();

if ($isOauthProviderConfigured) {
$errors = [];

try {
$provider = Analytics::$plugin->getOauth()->getOauthProvider();
$token = Analytics::$plugin->getOauth()->getToken();

$plugin = Craft::$app->getPlugins()->getPlugin('analytics');
$settings = $plugin->getSettings();

if ($token !== null) {
$oauthAccount = Analytics::$plugin->getCache()->get(['getAccount', $token]);

Expand Down

0 comments on commit ae79bf8

Please sign in to comment.