Commit Graph

17 Commits

Author SHA1 Message Date
Aleks-Daniel Jakimenko
6f8d281d79 No more "use vars"! 2015-04-10 13:31:28 +03:00
Aleks-Daniel Jakimenko
4492ede096 "use strict;" in modules (some modules have problems) 2015-03-27 03:01:01 +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
37c32783f3 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
67650e3dc8 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
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
f34b263465 (SeTextRule): Fix bug with h3 headers. 2004-12-05 14:19:12 +00:00
Alex Schroeder
f5279b034e (SeTextRule): AddHtmlEnvironment('p') 2004-12-05 04:00:28 +00:00
Alex Schroeder
1426088ff6 (SeTextRule): Applied changes from headers.pl. 2004-11-27 21:32:43 +00:00
Alex Schroeder
7a9e65ede3 (SeTextRule): No longer use the u element.
Use em with a style attribute instead.
2004-09-02 20:31:58 +00:00
Alex Schroeder
8feec45f3f Use push instead of unshift to add the rule. 2004-07-14 14:52:36 +00:00
Alex Schroeder
cee40889f2 Unshift rule to the front. 2004-06-28 23:38:11 +00:00
Alex Schroeder
3596f0a9df *** empty log message *** 2004-06-27 23:47:02 +00:00
Alex Schroeder
6fa9df1cb1 (SeTextRule): Use the local $bol variable. 2004-06-27 23:41:49 +00:00
Alex Schroeder
d2b36eac88 new 2004-06-27 22:04:52 +00:00