Skip to content

Commit

Permalink
use merged config
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain S Gillis committed Apr 9, 2022
1 parent 73ae51c commit 2370c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions highlight-php.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public function onPageInitialized()
$pagePreferencesSet && $config['enabled'] // ➋ per-page preferences set and the user set 'enabled' to true
) {
// set the configured theme, falling back to 'default' if unset somehow
$style = $this->config->get('style') ?: 'default';
$style = $config['style'] ?: 'default';
// set the configured theme, falling back to 'None' if unset somehow
$customStyle = $this->config->get('customStyle') ?: 'None';
$customStyle = $config['customStyle'] ?: 'None';

// register the css for our plugin, if required
if ($this->shouldLoadAsset($style)) {
Expand Down

0 comments on commit 2370c0d

Please sign in to comment.