From d8dd602fd280ec0060237a395583dd57becc3380 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 23 Dec 2022 15:50:40 +0100 Subject: [PATCH] oups --- inc/class.postwidgettext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class.postwidgettext.php b/inc/class.postwidgettext.php index ff9b6d9..128a1f7 100644 --- a/inc/class.postwidgettext.php +++ b/inc/class.postwidgettext.php @@ -83,7 +83,7 @@ class postWidgetText if (isset($params['option_type'])) { $params['sql'] .= "AND W.option_type = '" . $this->con->escape($params['option_type']) . "' "; } else { - $params['sql'] .= "AND W.option_type = '" . $this->con->escape(basename(__DIR__)) . "' "; + $params['sql'] .= "AND W.option_type = '" . $this->con->escape(basename(dirname(__DIR__))) . "' "; } unset($params['option_type']); if (!isset($params['post_type'])) {