input->getInt('w_id'); $vName = $this->input->get('view', 'categories'); $this->input->set('view', $vName); if ($this->app->getIdentity()->id || ($this->input->getMethod() == 'POST' && $vName == 'categories')) { $cacheable = false; } $safeurlparams = [ 'id' => 'INT', 'limit' => 'UINT', 'limitstart' => 'UINT', 'filter_order' => 'CMD', 'filter_order_Dir' => 'CMD', 'lang' => 'CMD', ]; // Check for edit form. if ($vName == 'form' && !$this->checkEditId('com_weblinks.edit.weblink', $id)) { // Somehow the person just went to the form - we don't allow that. throw new \Exception(Text::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id), 403); } return parent::display($cacheable, $safeurlparams); } }