Aleks-Daniel Jakimenko
c7bd5617ff
No more trailing whitespace
2015-04-17 01:39:47 +03:00
Aleks-Daniel Jakimenko
40ec24349a
No more "*Sub = *NewSub", \&NewSub used instead. (Partial progress)
2015-04-11 23:41:33 +03:00
Aleks-Daniel Jakimenko
6f8d281d79
No more "use vars"!
2015-04-10 13:31:28 +03:00
Alex Schroeder
09697fba23
Merge commit '5e4426b'
2015-03-27 12:12:47 +01:00
Aleks-Daniel Jakimenko
4492ede096
"use strict;" in modules (some modules have problems)
2015-03-27 03:01:01 +02:00
Aleks-Daniel Jakimenko
e9bde11993
calendar.pl: no more annoying space delimiters in links
2015-03-19 04:02:40 +02:00
Aleks-Daniel Jakimenko
62c7553d82
'return undef' changed to 'return'
...
This command was used:
find . -type f -print0 | xargs -0 sed -i 's/return undef/return/g'
The idea behind this commit is described on http://oddmuse.org/wiki/Refactoring page.
In short: 'return undef' returns (undef) in list context (a list with one element),
which is wrong.
2015-02-27 12:10:18 +02:00
Alex Schroeder
5aba2ae56f
Fixed typo in AddModuleDescription sub name
2014-08-21 22:23:23 +02:00
Alex Jakimenko
ee932dee37
Automatically reformatted modules
2014-08-21 07:29:46 +03:00
Alex Schroeder
b292ab5983
Fix modules using PrintAllPages.
2014-08-20 17:07:54 +02:00
Alex Schroeder
f11e2a8731
getting rid of $Id$ tags in $WikiDescription
...
Replaced the $Id$ tags in $WikiDescription for all the modules and wiki.pl itself with a link to the source and an appropriate wiki page, if possible. This is shown in action=version and should help users figure out what another wiki has installed.
2012-04-19 02:18:45 +02:00
Alex Schroeder
8cb8b8a58a
(DoPrintAllPages): PrintAllPages needs an extra parameter.
2011-11-19 15:26:44 +00:00
Weakish Jiang
6348dac278
rollback to 1.55
2008-04-25 12:54:19 +00:00
Weakish Jiang
b40a3c1e54
smarter error report
2008-04-25 12:41:37 +00:00
Alex Schroeder
5f89aab5fe
(PrintYearCalendar): Remove useless @pages
...
spotted by JuanmaMP.
2008-03-04 08:21:39 +00:00
Alex Schroeder
59b9c2da5e
(CalendarRule): Move
...
Clean(CloseHtmlEnvironments()) in front of the call to Dirty() so
that the closing p tag belongs to the clean block.
2006-12-14 12:13:14 +00:00
Alex Schroeder
a2dea7aa49
(Cal): Allow the $id substring anywhere in
...
the pagename, not just right after the date. This also handles
hours and minutes between the date and $id.
2006-10-04 15:12:10 +00:00
Alex Schroeder
da7a2f146b
(Cal): Pass %5e (^) at the beginning of
...
match explicitly.
(DoCollect): No longer automatically assume that match starts with
^ and add handling of search parameter.
2006-06-13 19:31:39 +00:00
Alex Schroeder
374993f5d5
($CalStartMonday): New option.
...
(draw_month): Use it.
(Cal): Accept a new parameter, id.
(CalendarRule): New pattern, [[month:+n foo bar]], and pass new
parameter to Cal.
2006-05-10 20:04:06 +00:00
Ingo Belka
310ee17ae4
oddmuse/modules/calendar.pl
2006-04-18 11:39:12 +00:00
Ingo Belka
f4dadfc2ef
($CalStartMonday): new option, if set to 1 week starts with Mo instead of Su
2006-03-27 04:56:11 +00:00
Ingo Belka
0eefc2b547
($CalStartMonday): new option, if set to 1 week starts with Mo instead of Su
2006-03-27 04:54:18 +00:00
Alex Schroeder
22d216c52e
(Cal): Replace \w+ by \S+ because Oddmuse
...
cannot rely on locale information being correct.
2006-03-25 23:07:04 +00:00
Alex Schroeder
18c92063d9
(Cal): No double translation.
...
(month_name): Translate here instead of in Cal, because this
allows us to extract the English month names and put them into the
translation files.
2006-03-24 15:11:42 +00:00
Ingo Belka
3316d4650b
output of draw_month is slimmer
2006-03-24 06:44:45 +00:00
Alex Schroeder
fe92ff615d
(Cal): Use default year if no month is
...
given.
(month_name): Don't translate month names here, they are
translated in Cal.
2006-03-22 22:36:13 +00:00
Alex Schroeder
81d995bf0e
($CalendarUseCal): Removed.
...
($CalAsTable): New option.
(Cal, CalendarRule, PrintYearCalendar, draw_month): Rearrange the
printing of divs, use $CalAsTable.
(draw_month): All months have the same number of lines inside
their pre tag.
2006-03-22 08:28:28 +00:00
Alex Schroeder
931e63814d
(CalendarRule): The start div for the
...
calendar is part of the dirty rule and should not be added to the
clean block. (This resulted in a doubling of the div start tag.)
(Cal): Don't allow year 0.
2006-02-12 17:29:23 +00:00
Alex Schroeder
24b8804479
(DoYearCalendar): Don't allow year 0.
2006-02-12 14:04:32 +00:00
Alex Schroeder
ddffcedfe3
(Cal): Removed limit on years.
...
(draw_month): Handle 1582-10-04.
(zeller): Handle 1582 and years smaller than 1582.
2006-02-11 17:47:41 +00:00
Alex Schroeder
acb2b531c6
(draw_month, month_name): Translate weekdays and month names.
2006-01-21 16:49:26 +00:00
Alex Schroeder
410b41ff6b
Patch by Ingo Belka to get rid of all dependencies.
...
($CalendarUseCal): Removed.
(Cal): Use draw_month instead of cal or a Perl module.
(draw_month, zeller, leap_year, month_days, month_name): New.
2006-01-21 16:45:56 +00:00
Alex Schroeder
e263a00265
Get rid of $DefaultStyleSheet.
2005-10-07 23:23:30 +00:00
Alex Schroeder
b050c781ed
Improve $DefaultStyleSheet.
2005-01-06 12:05:15 +00:00
Alex Schroeder
160fc1cfca
(CalendarRule): Return new open p tag instead of using Clean.
2005-01-06 12:01:41 +00:00
Alex Schroeder
d8778b0f0b
Improve $DefaultStyleSheet.
2005-01-06 11:56:00 +00:00
Alex Schroeder
c0db690a0b
Updated copyright years.
2005-01-06 11:35:04 +00:00
Alex Schroeder
111a4db024
(CalendarRule): Use Clean instead of print
...
for the p element that opens after the dirty blocks.
2005-01-06 11:23:44 +00:00
Alex Schroeder
ec0bd5c5ac
(DoCollect): Use content class.
...
(CalendarRule): Print calendar in a div.
(PrintYearCalendar): Don't print div here.
(DoYearCalendar): Print div here.
2004-12-20 06:11:29 +00:00
Alex Schroeder
27fac2c933
(CalendarRule, PrintYearCalendar): Close
...
HTML environments before printing and open new p after printing.
2004-12-19 15:12:59 +00:00
Alex Schroeder
0df3bc9f31
(NewCalendarGetHeader): Skip monthly
...
calendar on the yearly calendar and on edit pages.
2004-10-12 22:09:12 +00:00
Alex Schroeder
8fe0a9be1d
$DefaultStyleSheet improvements.
2004-10-12 21:55:21 +00:00
Alex Schroeder
c013be2436
(NewCalendarGetHeader): Show calendar only
...
for browse action.
2004-10-12 21:28:11 +00:00
Alex Schroeder
107c09994a
$DefaultStyleSheet change to hide calendar
...
@media print.
2004-10-12 21:08:25 +00:00
Alex Schroeder
054c84bcdb
$DefaultStyleSheet change to hide calendar
...
@media print.
2004-10-12 20:35:05 +00:00
Alex Schroeder
ed23f90c4e
(Cal): Highlight current day in the yearly
...
calendar as well. No longer accept $mday as a parameter.
(PrintYearCalendar): No longer pass $mday parameter.
2004-09-08 23:37:47 +00:00
Alex Schroeder
df7bc8f7bd
(Cal): Translate weekdays.
2004-09-04 09:41:00 +00:00
Alex Schroeder
1554e9449c
$DefaultStyleSheet modified.
2004-09-04 09:28:35 +00:00
Alex Schroeder
e4ae637afe
Add to $DefaultStyleSheet.
...
(Cal): Translate month names.
2004-09-04 09:16:50 +00:00
Alex Schroeder
c59a1a2b5b
(Cal): The year can be part of the link for
...
the month, or link to the year calendar.
(PrintYearCalendar): When printing the year calendar, the year
should not link to the same page.
2004-06-29 16:42:09 +00:00