示例#1
0
 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);
 }
示例#3
0
 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);
 }
示例#4
0
 public function execute($task)
 {
     $task = 'json';
     parent::execute($task);
 }
示例#5
0
	public function execute($task) {
		if(!in_array($task, array('cancel','save','apply'))) $task = 'edit';
		parent::execute($task);
	}
示例#6
0
 public function execute($task)
 {
     // The only allowed task is the browse one
     $task = 'browse';
     parent::execute($task);
 }