<?php /** * @package Sven.Bluege * @subpackage com_eventgallery * * @copyright Copyright (C) 2005 - 2019 Sven Bluege All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; jimport( 'joomla.application.component.controllerform' ); /** @noinspection PhpUndefinedClassInspection */ class EventgalleryControllerFile extends JControllerForm { protected function postSaveHook(\JModelLegacy $model, $validData = array()) { if ($this->task == 'apply') { $this->setRedirect(JRoute::_('index.php?option=com_eventgallery&view=file&layout=edit&tmpl=component&format=raw&id='.$this->input->getInt('id') . $this->getRedirectToListAppend(), false)); } if ($this->task == 'save') { $this->setRedirect(JRoute::_('index.php?option=com_eventgallery&view=file&layout=content&tmpl=component&format=raw&id='.$this->input->getInt('id') . $this->getRedirectToListAppend(), false)); } } }