| Current Path : /home/bonneesp/www/administrator/components/com_contactmap/ |
| Current File : /home/bonneesp/www/administrator/components/com_contactmap/controller.php |
<?php
/*
* ContactMap Component Google Map for Joomla! 3.x
* Version J3.0
* Creation date: Août 2014
* Author: Fabrice4821 - www.gmapfp.org
* Author email: webmaster@gmapfp.org
* License GNU/GPL
*/
defined('_JEXEC') or die;
class ContactMapController extends JControllerLegacy
{
public function display($cachable = false, $urlparams = false)
{
require_once JPATH_COMPONENT . '/helpers/contactmap.php';
$view = $this->input->get('view', 'contactmap');
$layout = $this->input->get('layout', 'default');
$id = $this->input->getInt('id');
// Check for edit form.
if ($view == 'marqueurs' && $layout == 'edit' && !$this->checkEditId('com_contactmap.edit.marqueur', $id))
{
// Somehow the person just went to the form - we don't allow that.
$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));
$this->setMessage($this->getError(), 'error');
$this->setRedirect(JRoute::_('index.php?option=com_contactmap&view=marqueurs', false));
return false;
}
parent::display();
return $this;
}
}