diff --git a/changelog.php b/changelog.php index 3cdd917..2df21b1 100644 --- a/changelog.php +++ b/changelog.php @@ -14,6 +14,12 @@ - -> Removed ! -> Note +Version 8.1.17 +# Fix critical bug with previous release + +Version 8.1.16 +# Fix bug getting module parameters + Version 8.1.15 # Fix permission issues with page builder extensions diff --git a/mod_shoutbox/helper.php b/mod_shoutbox/helper.php index 95f4a69..68b4eba 100644 --- a/mod_shoutbox/helper.php +++ b/mod_shoutbox/helper.php @@ -156,18 +156,22 @@ public static function getPostsAjax() public function getParams($title = null) { $query = $this->db->getQuery(true) - ->select('params') - ->from($this->db->qn('#__modules')) - ->where($this->db->qn('module') . ' = ' . $this->db->q('mod_shoutbox')); + ->select('m.id, m.module, m.params') + ->from('#__modules AS m') + ->join('LEFT', '#__modules_menu AS mm ON mm.moduleid = m.id') + ->where('m.published = 1') + ->where('m.module = ' . $this->db->q('mod_shoutbox')) + ->join('LEFT', '#__extensions AS e ON e.element = m.module AND e.client_id = m.client_id') + ->where('e.enabled = 1'); $this->db->setQuery($query); - $result = $this->db->loadResult(); + $result = $this->db->loadObject(); $moduleParams = new JRegistry; - + if ($result !== '') { - $moduleParams->loadString($result); + $moduleParams->loadString($result->params); } return $moduleParams; diff --git a/mod_shoutbox/mod_shoutbox.xml b/mod_shoutbox/mod_shoutbox.xml index 9869c59..879117d 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.15 + 8.1.17 JJSHOUTBOX_DESCRIPTION diff --git a/mod_shoutbox/sql/mysql/updates/8.1.16.sql b/mod_shoutbox/sql/mysql/updates/8.1.16.sql new file mode 100644 index 0000000..9c6d029 --- /dev/null +++ b/mod_shoutbox/sql/mysql/updates/8.1.16.sql @@ -0,0 +1 @@ +# Placeholder file for database changes for version 8.1.16 \ No newline at end of file diff --git a/mod_shoutbox/sql/mysql/updates/8.1.17.sql b/mod_shoutbox/sql/mysql/updates/8.1.17.sql new file mode 100644 index 0000000..d864b81 --- /dev/null +++ b/mod_shoutbox/sql/mysql/updates/8.1.17.sql @@ -0,0 +1 @@ +# Placeholder file for database changes for version 8.1.17 \ No newline at end of file diff --git a/mod_shoutbox/sql/postgresql/updates/8.1.16.sql b/mod_shoutbox/sql/postgresql/updates/8.1.16.sql new file mode 100644 index 0000000..9c6d029 --- /dev/null +++ b/mod_shoutbox/sql/postgresql/updates/8.1.16.sql @@ -0,0 +1 @@ +# Placeholder file for database changes for version 8.1.16 \ No newline at end of file diff --git a/mod_shoutbox/sql/postgresql/updates/8.1.17.sql b/mod_shoutbox/sql/postgresql/updates/8.1.17.sql new file mode 100644 index 0000000..d864b81 --- /dev/null +++ b/mod_shoutbox/sql/postgresql/updates/8.1.17.sql @@ -0,0 +1 @@ +# Placeholder file for database changes for version 8.1.17 \ No newline at end of file