Skip to content

Commit

Permalink
Merge pull request #3187 from elkuku/hardcoded-archive-year
Browse files Browse the repository at this point in the history
Fix hard coded archive year [#33345]
  • Loading branch information
infograf768 committed Mar 14, 2014
2 parents 70a7b73 + c4f630d commit 34613f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_content/views/archive/view.html.php
Expand Up @@ -79,7 +79,7 @@ public function display($tpl = null)
// Year Field
$years = array();
$years[] = JHtml::_('select.option', null, JText::_('JYEAR'));
for ($i = 2000; $i <= 2020; $i++)
for ($year = date('Y'), $i = $year - 10; $i <= $year; $i++)
{
$years[] = JHtml::_('select.option', $i, $i);
}
Expand Down

0 comments on commit 34613f4

Please sign in to comment.