Skip to content

Commit

Permalink
4.4.7
Browse files Browse the repository at this point in the history
PHP 8.4 compatibility
  • Loading branch information
conseilgouz committed Feb 24, 2025
1 parent 50c34c8 commit 330632f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
5 changes: 2 additions & 3 deletions admin/src/Model/PagesModel.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php
/**
* CG Isotope Component - Joomla 4.x/5x Component
* Version : 4.2.18
* Package : CG ISotope
* copyright : Copyright (C) 2024 ConseilGouz. All rights reserved.
* copyright : Copyright (C) 2025 ConseilGouz. All rights reserved.
* license : https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
* From : isotope.metafizzy.co
*/
Expand All @@ -18,7 +17,7 @@

class PagesModel extends ListModel
{
public function __construct($config = array(), MVCFactoryInterface $factory = null)
public function __construct($config = array(), ? MVCFactoryInterface $factory = null)
{
if (empty($config['filter_fields'])) {
$config['filter_fields'] = array(
Expand Down
4 changes: 2 additions & 2 deletions cgisotope.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" method="upgrade">
<name>CG Isotope</name>
<creationDate>2025-02-22</creationDate>
<creationDate>2025-02-24</creationDate>
<author>ConseilGouz</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<copyright>Copyright (C) 2025 ConseilGouz.com. All Rights Reserved</copyright>
<license>GNU/GPL Version 3 or later - https://www.gnu.org/licenses/gpl-3.0.html</license>
<version>4.4.6</version>
<version>4.4.7</version>
<description>CG_ISO_XML_DESCRIPTION</description>
<namespace path="src">ConseilGouz\Component\CGIsotope</namespace>
<install>
Expand Down
11 changes: 11 additions & 0 deletions com_cgisotope_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<changelogs>
<changelog>
<element>com_cgisotope</element>
<type>component</type>
<version>4.4.7</version>
<note>
<item>Update : 24/02/2025</item>
</note>
<fix>
<item>PHP 8.4 compatibility</item>
</fix>
</changelog>
<changelog>
<element>com_cgisotope</element>
<type>component</type>
Expand Down
4 changes: 2 additions & 2 deletions site/src/Model/PageModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* CG Isotope Component - Joomla 4.x/5.x Component
* Package : CG ISotope
* copyright : Copyright (C) 2024 ConseilGouz. All rights reserved.
* copyright : Copyright (C) 2025 ConseilGouz. All rights reserved.
* license : https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*
*/
Expand All @@ -15,7 +15,7 @@

class PageModel extends ListModel {

public function __construct($config = array(), MVCFactoryInterface $factory = null)
public function __construct($config = array(), ? MVCFactoryInterface $factory = null)
{
if (empty($config['filter_fields'])) {
$config['filter_fields'] = array(
Expand Down
5 changes: 4 additions & 1 deletion site/tmpl/page/default_fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,10 @@ class="iso_tag_img_art" alt="'.$tagimage->image_fulltext_alt.'" title="'.$tagima
continue;
} // not in list : ignore it
}
$cat_params = json_decode($this->cats_params[$item->catid]);
$cat_params = null;
if ($this->cats_params[$item->catid]) {
$cat_params = json_decode($this->cats_params[$item->catid]);
}
if (($cat_params) && (isset($cat_params->image)) && ($cat_params->image != "")) {
$cat_img = "<img src='".URI::root().$cat_params->image."' alt='".$cat_params->image_alt."' class='iso_cat_img_art'/>";
}
Expand Down

0 comments on commit 330632f

Please sign in to comment.