mediawiki-extensions / mw-calendar

Automatically exported from code.google.com/p/mw-calendar
0 stars 2 forks source link

date="yesterday" #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is no date="yesterday" possible.

You only have to change line 506 f. to:

if (($setting == "today") || ($setting == "tomorrow") || ($setting ==
"yesterday")){

if ($setting == "tomorrow" ){   
getNextValidDate($this->month, $this->day, $this->year);        
}

if ($setting == "yesterday" ){  

$this->month = date("m");
$this->day = date("d")-1; 
$this->year = date("Y");

}

} ...

Original issue reported on code.google.com by martin.s...@gmail.com on 3 Mar 2009 at 10:58

GoogleCodeExporter commented 8 years ago
Thanks for the feedback!

I may approach this in another way though. The 'today' and 'tomorrow' options 
can be
replaced currently with "useeventlist=1" or even  "useeventlist=2". I purpose
"useeventlist=-x" and utilize however many days you feel are necessary...

All that 'today/tomorrow' code maybe replaced with a simple code switch to use
'useeventlist'. The 'today/tomorrow' tags will just be redirected to
'useeventlist=1'. The only downside to this is not being able to set only 
'tomorrow'.

I'll review it more, again thanks for the feedback.

Eric

ERic

Original comment by kenyu73 on 5 Mar 2009 at 1:25

GoogleCodeExporter commented 8 years ago
Thaks for the answer!

maybe something like 'useeventlist=1,2,3' for the next three days is possible 
...
and if you want to set only 'tomorrow' it would be 'useeventlist=2'.
Just an idea.

Martin

Original comment by martin.s...@gmail.com on 6 Mar 2009 at 3:24

GoogleCodeExporter commented 8 years ago

Original comment by kenyu73 on 18 Apr 2009 at 2:49

GoogleCodeExporter commented 8 years ago
fixed in 3.7.2

Original comment by kenyu73 on 18 Apr 2009 at 10:38