Skip to content

Commit

Permalink
Merge branch 'release/3.1.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrenth committed Apr 19, 2023
2 parents b02efdc + c6e5f36 commit a3cd617
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.7] - 2023-04-19

* Remove use of old BrandSetting constants (#103).

## [3.1.6] - 2023-03-28

* Add support for October CMS 3.3
Expand Down
4 changes: 2 additions & 2 deletions classes/BrandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ protected function init(): void
$colorPalette = BrandSetting::get('color_palette');
$colorMode = BrandSetting::getColorMode();

$this->primaryColor = $colorPalette[$colorMode]['primary'] ?? BrandSetting::PRIMARY_COLOR;
$this->secondaryColor = $colorPalette[$colorMode]['secondary'] ?? BrandSetting::SECONDARY_COLOR;
$this->primaryColor = $colorPalette[$colorMode]['primary'] ?? '#6a6cf7';
$this->secondaryColor = $colorPalette[$colorMode]['secondary'] ?? '#72809d';
// October CMS <3.2
} else {
$this->primaryColor = $brandSettings->get('primary_color');
Expand Down
3 changes: 2 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ v3.1.2: "Fix daily stats labels when selecting month/year."
v3.1.3: "Maintenance release"
v3.1.4: "Fix target field not loading properly. See: https://github.com/vdlp/oc-redirect-plugin/releases/tag/3.1.4"
v3.1.5: "Minor improvements. See: https://github.com/vdlp/oc-redirect-plugin/releases/tag/3.1.5"
v3.1.6: "Add support for October CMS 3.3."
v3.1.6: "Add support for October CMS 3.3."
v3.1.7: "Remove use of old BrandSetting constants."

0 comments on commit a3cd617

Please sign in to comment.