protected function populateState($ordering = null, $direction = null) { if (isset($this->filter)) { $mainframe = JFactory::getApplication(); /* @var $mainframe JApplication */ foreach ($this->filter as $name => $type) { $value = $this->cleanData($this->getUserStateFromRequest($this->getSessionName($name), JoomDOCView::getFieldName($name), $this->getDefaultValue($type), $type), $type); $this->setState(JoomDOCView::getStateName($name), $value); } if ($mainframe->isSite()) { $this->setState(JoomDOCView::getStateName(JOOMDOC_FILTER_ACCESS), true); } $keys = array_keys($this->filter); parent::populateState(reset($keys), 'asc'); } }