Skip to content

Commit

Permalink
pkp#10714 Fix: can't save site-level theme options
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Dec 16, 2024
1 parent 731d291 commit 1122326
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/plugins/ThemePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,9 @@ public function saveOption($name, $value, $contextId = null)

if (is_null($contextId)) {
$context = Application::get()->getRequest()->getContext();
$contextId = $context->getId();
if ($context) {
$contextId = $context->getId();
}
}

$pluginSettingsDao = DAORegistry::getDAO('PluginSettingsDAO'); /** @var PluginSettingsDAO $pluginSettingsDao */
Expand Down

0 comments on commit 1122326

Please sign in to comment.