Date Fix in Archive Module

Von Hausmeister, So, 2006-01-22 16:13

The archive.module contains a surprising line which makes it imposible to search the archive for items of the current year.

$years = drupal_map_assoc(range(2000, 2005));

I changed this based on a hint given by joshb to:

$years = drupal_map_assoc(range(2004, date('Y')));

So searching the archive should be possible for the years to come. Of course, it would be even better to determine the starting year by the earliest post of the site.

Trackback-URL dieses Beitrags:

http://souvenirs.jotefa.de/trackback/30

Kommentar hinzufügen



Der Inhalt dieses Feldes wird geheim gehalten und nicht öffentlich gezeigt.



Eingabeformat:
Expand filter description
  • Erlaubte HTML-Tags: <a> <em> <strong> <cite> <strike> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <br> <sub> <img> <div>
  • Zeilen und Absätze werden automatisch erzeugt.
  • Easily link to terms in various wikis. For help, see interwiki.
  • Images can be added to this post.
Expand filter description
  • Web and e-mail addresses are automatically converted into links.
  • Zeilen und Absätze werden automatisch erzeugt.