Skip to content

Commit

Permalink
remove method allow parent to run
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil E. Taylor committed May 23, 2021
1 parent d7cc4b5 commit f6effc7
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions components/com_content/src/Model/ArchiveModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,33 +157,6 @@ public function getData()
return $this->_data;
}

/**
* Model override to add alternating value for $odd
*
* @param string $query The query.
* @param integer $limitstart Offset.
* @param integer $limit The number of records.
*
* @return array An array of results.
*
* @since 3.0.1
* @throws \RuntimeException
*/
protected function _getList($query, $limitstart=0, $limit=0)
{
$result = parent::_getList($query, $limitstart, $limit);

$odd = 1;

foreach ($result as $k => $row)
{
$result[$k]->odd = $odd;
$odd = 1 - $odd;
}

return $result;
}

/**
* Gets the archived articles years
*
Expand Down

0 comments on commit f6effc7

Please sign in to comment.