Commit Graph

20 Commits

Author SHA1 Message Date
Alex Schroeder
0666ed13af Return objects where it begs for it
sub ParseData is fully backwards compatible. If some module runs it in list
context, then it will get listified hash like previously. New code should
always run it in scalar context though (everything in our code base
was changed according to that).

sub GetTextRevision is not backwards compatible (don't let “wantarray” usage
to confuse you). Most modules do not touch that subroutine, so we are probably
fine (modules from our git repo that do use were changed accordingly).

“EncodePage(%$page)” looks wrong. It seems like we should change it to accept
hash ref.
2015-09-04 04:55:48 +03:00
Alex Schroeder
5f019a6ce2 No more /o, modifiers sorted alphabetically 2015-08-23 21:22:12 +03:00
Alex Schroeder
0ec8dd44e6 use v5.10 everywhere + enabled test in meta.t 2015-08-18 10:48:03 +02:00
Alex Schroeder
2c0b3889ea aggregate.pl passes perl -c
ToString needs parethesis.
2015-07-03 14:26:59 +02:00
Alex Schroeder
43e99156ee UTF-8, again! Also, new ToString sub. 2015-05-17 03:35:35 +03:00
Alex Schroeder
5d2db4b547 No more "use vars"! 2015-04-10 13:31:28 +03:00
Alex Schroeder
a4e0e5a9be "use strict;" in modules (some modules have problems) 2015-03-27 03:01:01 +02:00
Alex Schroeder
6b1c65bc8d '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
e6d3ad8382 Fixed typo in AddModuleDescription sub name 2014-08-21 22:23:23 +02:00
Alex Schroeder
17bd795ef0 Automatically reformatted modules 2014-08-21 07:29:46 +03:00
Alex Schroeder
c9e39a4c19 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
a194c6fdd9 (AggregateRule): Prevent infinite loops
when searching.
2007-06-26 09:40:41 +00:00
Alex Schroeder
1e6dc919d9 (AggregateRule, DoAggregate): Exchange position of sort and search
keywords, no longer require double quotes around search term.
2006-06-05 00:03:20 +00:00
Alex Schroeder
e4d86974be (AggregateRule, DoAggregate): Sort entries if requested. 2006-06-04 23:35:49 +00:00
Alex Schroeder
2f3ea9a937 (AggregateRule, DoAggregate): Allow search
expressions as well.
2006-06-04 23:03:22 +00:00
Alex Schroeder
1acd2616e6 (DoAggregate): Add frontpage title to
channel title. Add page id to links.
2006-03-14 21:53:51 +00:00
Alex Schroeder
d79531138b (AggregateRule): Add RSS feed. 2005-12-20 00:51:33 +00:00
Alex Schroeder
807683242f fix learn more links 2005-12-16 12:53:48 +00:00
Alex Schroeder
9a8af14589 fix divs, remove leading header 2005-12-16 12:48:27 +00:00
Alex Schroeder
c6664a04f5 new 2005-12-16 12:40:28 +00:00