Skip to content

Commit 2a5f204

Browse files
authored
Fix deprecated direct property access (joomla#45889)
1 parent 7e52a31 commit 2a5f204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/com_content/src/Model/ArchiveModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function getYears()
160160
$query = $db->getQuery(true);
161161
$queryDate = QueryHelper::getQueryDate($this->state->get('params')->get('order_date'), $db);
162162
$years = $query->year($queryDate);
163-
$yearSort = $this->state->params->get('year_sort_order', 'ASC');
163+
$yearSort = $this->state->get('params')->get('year_sort_order', 'ASC');
164164

165165
$query->select('DISTINCT ' . $years)
166166
->from($db->quoteName('#__content', 'a'))

0 commit comments

Comments
 (0)