32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-11-16 09:37:08 +00:00

Merge pull request #497 from chmst/controller-postsavehook

Update postsavehook params
This commit is contained in:
Tuan Pham Ngoc 2022-05-20 22:39:58 +07:00 committed by GitHub
commit e79bc928e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ namespace Joomla\Component\Weblinks\Administrator\Controller;
defined('_JEXEC') or die; defined('_JEXEC') or die;
use Joomla\CMS\MVC\Controller\FormController; use Joomla\CMS\MVC\Controller\FormController;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Router\Route; use Joomla\CMS\Router\Route;
use Joomla\CMS\Versioning\VersionableControllerTrait; use Joomla\CMS\Versioning\VersionableControllerTrait;
use Joomla\Utilities\ArrayHelper; use Joomla\Utilities\ArrayHelper;
@ -118,7 +119,7 @@ class WeblinkController extends FormController
* *
* @since 1.6 * @since 1.6
*/ */
protected function postSaveHook(\JModelLegacy $model, $validData = array()) protected function postSaveHook(BaseDatabaseModel $model, $validData = [])
{ {
$task = $this->getTask(); $task = $this->getTask();