Skip to content

Commit

Permalink
add new options to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhahnweilheim committed Oct 30, 2023
1 parent 26fee94 commit 641e09e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion models/AdvancedSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function getSettingsArray()
$module = Yii::$app->getModule('flex-theme');

// Get base settings
$config_names = ['commentLink', 'likeLink', 'likeIcon', 'likeIconFull', 'likeIconColor'];
$config_names = Config::CONFIG_NAMES;
foreach( $config_names as $setting) {
$value = $module->settings->get($setting);

Expand Down
1 change: 1 addition & 0 deletions models/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
class Config extends \yii\base\Model
{
// Module settings
const CONFIG_NAMES = ['commentLink', 'likeLink', 'likeIcon', 'likeIconFull', 'likeIconColor', 'showTopicMenu', 'showUploadAsButtons'];
public $commentLink;
public $likeLink;
public $likeIcon;
Expand Down

0 comments on commit 641e09e

Please sign in to comment.