From cbf007cce728831d6ddf2a1ab408a10cf629018b Mon Sep 17 00:00:00 2001 From: C-Lodder Date: Sat, 24 Nov 2018 18:15:53 +0000 Subject: [PATCH 1/2] Fix permissions with page builder extensions --- changelog.php | 3 +++ mod_shoutbox/helper.php | 18 ++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/changelog.php b/changelog.php index e7384ea..f9236bc 100644 --- a/changelog.php +++ b/changelog.php @@ -14,6 +14,9 @@ - -> Removed ! -> Note +WIP +# Fix permission issues with page builder extensions + Version 8.1.14 # Fixed install SQL missing a field # Fixed HTML5 notification image on multilingual sites diff --git a/mod_shoutbox/helper.php b/mod_shoutbox/helper.php index cdfe08b..95f4a69 100644 --- a/mod_shoutbox/helper.php +++ b/mod_shoutbox/helper.php @@ -45,8 +45,8 @@ class ModShoutboxHelper */ public function __construct($id) { - $this->params = $this->getParams($id); $this->db = JFactory::getDbo(); + $this->params = $this->getParams($id); } /** @@ -155,10 +155,20 @@ public static function getPostsAjax() */ public function getParams($title = null) { - jimport('joomla.application.module.helper'); - $module = JModuleHelper::getModule('mod_shoutbox', $title); + $query = $this->db->getQuery(true) + ->select('params') + ->from($this->db->qn('#__modules')) + ->where($this->db->qn('module') . ' = ' . $this->db->q('mod_shoutbox')); + + $this->db->setQuery($query); + $result = $this->db->loadResult(); + $moduleParams = new JRegistry; - $moduleParams->loadString($module->params); + + if ($result !== '') + { + $moduleParams->loadString($result); + } return $moduleParams; } From 2bba9117fcdfddf5e79269a330b88ac7604852aa Mon Sep 17 00:00:00 2001 From: C-Lodder Date: Sat, 24 Nov 2018 18:30:48 +0000 Subject: [PATCH 2/2] Update to v8.1.15 --- changelog.php | 2 +- mod_shoutbox/mod_shoutbox.xml | 2 +- mod_shoutbox/sql/mysql/updates/8.1.15.sql | 1 + mod_shoutbox/sql/postgresql/updates/8.1.15.sql | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 mod_shoutbox/sql/mysql/updates/8.1.15.sql create mode 100644 mod_shoutbox/sql/postgresql/updates/8.1.15.sql diff --git a/changelog.php b/changelog.php index f9236bc..3cdd917 100644 --- a/changelog.php +++ b/changelog.php @@ -14,7 +14,7 @@ - -> Removed ! -> Note -WIP +Version 8.1.15 # Fix permission issues with page builder extensions Version 8.1.14 diff --git a/mod_shoutbox/mod_shoutbox.xml b/mod_shoutbox/mod_shoutbox.xml index 40a552e..9869c59 100644 --- a/mod_shoutbox/mod_shoutbox.xml +++ b/mod_shoutbox/mod_shoutbox.xml @@ -7,7 +7,7 @@ http://www.gnu.org/licenses/gpl-3.0.html admin@joomjunk.co.uk http://www.joomjunk.co.uk - 8.1.14 + 8.1.15 JJSHOUTBOX_DESCRIPTION diff --git a/mod_shoutbox/sql/mysql/updates/8.1.15.sql b/mod_shoutbox/sql/mysql/updates/8.1.15.sql new file mode 100644 index 0000000..fb03d4c --- /dev/null +++ b/mod_shoutbox/sql/mysql/updates/8.1.15.sql @@ -0,0 +1 @@ +# Placeholder file for database changes for version 8.1.15 \ No newline at end of file diff --git a/mod_shoutbox/sql/postgresql/updates/8.1.15.sql b/mod_shoutbox/sql/postgresql/updates/8.1.15.sql new file mode 100644 index 0000000..fb03d4c --- /dev/null +++ b/mod_shoutbox/sql/postgresql/updates/8.1.15.sql @@ -0,0 +1 @@ +# Placeholder file for database changes for version 8.1.15 \ No newline at end of file