summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-06-05 09:32:46 +0000
committerDries Buytaert <dries@buytaert.net>2006-06-05 09:32:46 +0000
commit4c3e7443c74f04514673efefa7375e1592d53408 (patch)
tree9a76fb8d8ed660bfb8e80fe1269144b589c81fc8 /modules
parent32b4c92952d3061073c3f7f66b1cd68a10c20c88 (diff)
downloadbrdo-4c3e7443c74f04514673efefa7375e1592d53408.tar.gz
brdo-4c3e7443c74f04514673efefa7375e1592d53408.tar.bz2
- Modified patch #56916 by dww: fixed the archive date.
Diffstat (limited to 'modules')
-rw-r--r--modules/archive.module2
-rw-r--r--modules/archive/archive.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/archive.module b/modules/archive.module
index 93a09b5c0..30f8267aa 100644
--- a/modules/archive.module
+++ b/modules/archive.module
@@ -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));
diff --git a/modules/archive/archive.module b/modules/archive/archive.module
index 93a09b5c0..30f8267aa 100644
--- a/modules/archive/archive.module
+++ b/modules/archive/archive.module
@@ -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));