/** * Override's parent's execute behavior * * @since 1.0 * @access public * @param string * @return */ public function execute($task) { $current = $this->input->get('controller', '', 'word'); // Check and see if this view should be displayed // If private mode is enabled and user isn't logged in. if ($this->config->get('general.site.lockdown.enabled') && $this->my->guest) { if ($this->lockdown($task) && !empty($current)) { $url = FRoute::login(array(), false); return $this->app->redirect($url); } } parent::execute($task); }
/** * Override's parent's execute behavior * * @since 1.0 * @access public * @param string * @return */ public function execute($task) { $config = FD::config(); $current = JRequest::getWord('controller'); // Check and see if this view should be displayed // If private mode is enabled and user isn't logged in. if ($config->get('general.site.lockdown.enabled') && !JFactory::getUser()->id) { if ($this->lockdown($task) && !empty($current)) { JFactory::getApplication()->redirect(FRoute::login(array(), false)); } } parent::execute($task); }