1 (edited by 2011-01-24 18:36:21)

Topic: [BUG] Postponed News and Search: choosing the Year.

CuteNews Compatibility: 1.4.5 - * (no incompatibility reported yet)
Description: This is a bug found by the user afullo. For the postpone news and search you have a dropdown for selecting the year. This option was very poorly coded, You'll only be able to select up to year 2010.
Instructions:
in addnews.mdu and search.php find

for($i=2005;$i<2011;$i++){


and replace by

for($i=2005;$i<(date('Y')+3);$i++){


This code will make sure you'll always will be able to select 2 years into the future.