Skip to content

Commit

Permalink
[2.5.19] Fix deprecated issue with Joomla 3
Browse files Browse the repository at this point in the history
Fix warning Too few arguments to function plgSystemAstroid::onContentBeforeSave(), 3 passed in root/libraries/joomla/event/event.php on line 70 and exactly 4 expected
  • Loading branch information
sonvnn committed Aug 27, 2022
1 parent b03d429 commit 4f46fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/astroid/astroid.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function onContentPrepareForm($form, $data)
Framework::getClient()->onContentPrepareForm($form, $data);
}

public function onContentBeforeSave($context, $table, $isNew, $data)
public function onContentBeforeSave($context, $table, $isNew, $data = null)
{
if (!file_exists(JPATH_LIBRARIES . '/astroid/framework/library/astroid')) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion plugins/astroid/astroid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Astroid Plugin</name>
<author>JoomDev/TemPlaza</author>
<creationDate>August 2022</creationDate>
<version>2.5.19</version>
<version>2.5.20</version>
<url>https://www.astroidframe.work</url>
<copyright>Copyright (C) 2022 TemPlaza, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
Expand Down

0 comments on commit 4f46fd4

Please sign in to comment.