From 0225e8ff6a5973236e840fc1b8537a45a2d3a5dc Mon Sep 17 00:00:00 2001 From: spleenftw Date: Thu, 4 Jun 2026 11:37:18 +0200 Subject: [PATCH] Refactor form methods to use getValue for retrieving plugin settings --- plugin.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin.php b/plugin.php index a8b3997..353707d 100644 --- a/plugin.php +++ b/plugin.php @@ -27,9 +27,9 @@ class PluginBluditToc extends Plugin { public function form() { global $L; - $title = htmlspecialchars($this->getDbField('title'), ENT_QUOTES, 'UTF-8'); - $navbarHeight = (int) $this->getDbField('navbarHeight'); - $minWidth = (int) $this->getDbField('minWidth'); + $title = htmlspecialchars($this->getValue('title'), ENT_QUOTES, 'UTF-8'); + $navbarHeight = (int) $this->getValue('navbarHeight'); + $minWidth = (int) $this->getValue('minWidth'); $h = ''; @@ -69,7 +69,7 @@ class PluginBluditToc extends Plugin { * JS will populate