Commit Graph

17 Commits

Author SHA1 Message Date
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
ab624787c4 Changed \x{ffff} to \x{fffd} in all regular expressions.
Using Perl 5.8.8 resulted in a crash when compiling regular expressions referring to \x{ffff}.
2012-07-19 06:01:30 -04:00
Alex Schroeder
1495a29fd3 More UTF-8 fixes
All the source files containing non-ASCII characters needed to have
utf8 added. This will be necessary for user config files as well! The
regular expressions identifying page names had to be changed.
UrlEncode translates the string back to bytes before encoding it.
Cached RSS files are saved with UTF-8 encoding and therefore need
their meta-data changed (using the XML::RSS module to do this
correctly didn't work for some of the test files). The CGI object's
parameters, keywords and info_path are decoded correctly. File access
uses the UTF-8 layer (reading, writing, appending, access to the log
of recent changes, running sub processes with grep and diff).

The mac compatibility extension will also disable the use of grep if
non-ASCII characters are searched for because of an unexplained
problem with grep.
2012-05-24 18:08:42 +02: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
1b16f3711a (SeTextRule): Fix bug with h3 headers. 2004-12-05 14:19:12 +00:00
Alex Schroeder
8b13797e96 (SeTextRule): AddHtmlEnvironment('p') 2004-12-05 04:00:28 +00:00
Alex Schroeder
a52382ddc7 (SeTextRule): Applied changes from headers.pl. 2004-11-27 21:32:43 +00:00
Alex Schroeder
344bcfd7f2 (SeTextRule): No longer use the u element.
Use em with a style attribute instead.
2004-09-02 20:31:58 +00:00
Alex Schroeder
cafec62318 Use push instead of unshift to add the rule. 2004-07-14 14:52:36 +00:00
Alex Schroeder
621a8fe50d Unshift rule to the front. 2004-06-28 23:38:11 +00:00
Alex Schroeder
3cc943f85f *** empty log message *** 2004-06-27 23:47:02 +00:00
Alex Schroeder
d18ce8fe68 (SeTextRule): Use the local $bol variable. 2004-06-27 23:41:49 +00:00
Alex Schroeder
0733fedfca new 2004-06-27 22:04:52 +00:00