diff --git a/src/admin/form/filter_sitemaps.xml b/src/admin/form/filter_sitemaps.xml index 85b70bfa..7a19d6b7 100644 --- a/src/admin/form/filter_sitemaps.xml +++ b/src/admin/form/filter_sitemaps.xml @@ -1,22 +1,19 @@
- + - + - + @@ -24,8 +21,7 @@ - JGLOBAL_SORT_BY - - + + - where('sitemap.name LIKE ' . $db->quote('%' . $search . '%')); } - $listOrder = $this->getState($this->context . '.list.ordering', 'sitemap.id'); - $listDir = $this->getState($this->context . '.list.direction', 'ASC'); - $query->order($listOrder . ' ' . $listDir); + $ordering = $this->getState('list.ordering'); + $direction = $this->getState('list.direction'); + $query->order($ordering . ' ' . $direction); return $query; } - protected function populateState($ordering = null, $direction = null) + protected function populateState($ordering = 'sitemap.id', $direction = 'asc') { $published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published'); $this->setState('filter.published', $published); @@ -74,7 +75,7 @@ protected function populateState($ordering = null, $direction = null) $default = $this->getUserStateFromRequest($this->context . '.filter.default', 'filter_default'); $this->setState('filter.default', $default); - parent::populateState('sitemap.id', 'ASC'); + parent::populateState($ordering, $direction); } public function getItems() diff --git a/src/admin/views/sitemaps/tmpl/default.php b/src/admin/views/sitemaps/tmpl/default.php index efee4928..0c549c47 100644 --- a/src/admin/views/sitemaps/tmpl/default.php +++ b/src/admin/views/sitemaps/tmpl/default.php @@ -21,8 +21,8 @@ $container = OSMap\Factory::getContainer(); $baseUrl = $container->router->sanitizeURL(JUri::root()); -$listOrder = $this->escape($this->state->get('list.ordering')); -$listDir = $this->escape($this->state->get('list.direction')); +$listOrder = $this->state->get('list.ordering'); +$listDir = $this->state->get('list.direction'); ?> "> - - diff --git a/src/admin/views/sitemaps/tmpl/modal.php b/src/admin/views/sitemaps/tmpl/modal.php index f7fae341..cdb46a20 100644 --- a/src/admin/views/sitemaps/tmpl/modal.php +++ b/src/admin/views/sitemaps/tmpl/modal.php @@ -122,7 +122,5 @@ - -