public function execute($task) { if ($task != 'step') { $task = 'browse'; } parent::execute($task); }
public function execute($task) { if (!in_array($task, array('switchprofile', 'disablephpwarning'))) { $task = 'browse'; } parent::execute($task); }
public function execute($task) { // Enforce raw mode - I need to be in full control! $document = JFactory::getDocument(); if ($document->getType() != 'raw') { $url = JURI::base() . 'index.php?option=com_akeeba&view=light&format=raw'; $this->setRedirect($url); $this->redirect(); return true; } // Map default/unknown tasks to "browse" if (!in_array($task, array('authenticate', 'step', 'error', 'done'))) { $task = 'browse'; } parent::execute($task); }
public function execute($task) { $task = 'json'; parent::execute($task); }
public function execute($task) { if(!in_array($task, array('cancel','save','apply'))) $task = 'edit'; parent::execute($task); }
public function execute($task) { // The only allowed task is the browse one $task = 'browse'; parent::execute($task); }