Commit 4c3e7443 authored by Dries's avatar Dries
Browse files

- Modified patch #56916 by dww: fixed the archive date.

parent 32b4c929
......@@ -252,7 +252,7 @@ function archive_page($year = 0, $month = 0, $day = 0) {
*/
function archive_browse_form($year, $month, $day) {
// Prepare the values of the form fields.
$years = drupal_map_assoc(range(2000, 2010));
$years = drupal_map_assoc(range(2000, date('Y')));
$months = array(1 => t('January'), 2 => t('February'), 3 => t('March'), 4 => t('April'), 5 => t('May'), 6 => t('June'), 7 => t('July'), 8 => t('August'), 9 => t('September'), 10 => t('October'), 11 => t('November'), 12 => t('December'));
$days = drupal_map_assoc(range(1, 31));
......
......@@ -252,7 +252,7 @@ function archive_page($year = 0, $month = 0, $day = 0) {
*/
function archive_browse_form($year, $month, $day) {
// Prepare the values of the form fields.
$years = drupal_map_assoc(range(2000, 2010));
$years = drupal_map_assoc(range(2000, date('Y')));
$months = array(1 => t('January'), 2 => t('February'), 3 => t('March'), 4 => t('April'), 5 => t('May'), 6 => t('June'), 7 => t('July'), 8 => t('August'), 9 => t('September'), 10 => t('October'), 11 => t('November'), 12 => t('December'));
$days = drupal_map_assoc(range(1, 31));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment