Updated: Changes for PHP 8.x compatibility
This commit is contained in:
@@ -74,7 +74,7 @@ class CMSCore extends ObjectModel
|
||||
public function update($null_values = false)
|
||||
{
|
||||
if (parent::update($null_values)) {
|
||||
return $this->cleanPositions($this->id_cms_category);
|
||||
return CMS::cleanPositions($this->id_cms_category);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -82,12 +82,12 @@ class CMSCore extends ObjectModel
|
||||
public function delete()
|
||||
{
|
||||
if (parent::delete()) {
|
||||
return $this->cleanPositions($this->id_cms_category);
|
||||
return CMS::cleanPositions($this->id_cms_category);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function getLinks($id_lang, $selection = null, $active = true, Link $link = null)
|
||||
public static function getLinks($id_lang, $selection = null, $active = true, ?Link $link = null)
|
||||
{
|
||||
if (!$link) {
|
||||
$link = Context::getContext()->link;
|
||||
|
||||
Reference in New Issue
Block a user