Commit Graph

1873 Commits

Author SHA1 Message Date
Alex Schroeder
a2c6bd372f upgrade.pl uses strict
DoUpgrade is an alias for DoBrowseRequest which doesn't get $id as a
first parameter like many actions do. Therefore determine $id like
DoBrowseRequest does: call GetId.
2015-03-29 23:18:07 +02:00
Alex Schroeder
0aa41c8f06 namespaces.pl uses strict
Apparently whatever prevented this from working has been fixed in the
mean time.
2015-03-29 23:15:35 +02:00
Alex Schroeder
aede7a276f catalan-utf8.pl is new
Downloaded from
http://usuaris.tinet.cat/amoreno/wiki/Wiki
2015-03-29 22:47:41 +02:00
Alex Schroeder
25c433815d recaptcha.pl uses strict
Same fix as for gd_security_image.pl.
2015-03-29 17:53:08 +02:00
Alex Schroeder
85e3eaaccb strange-spam.pl uses strict 2015-03-29 17:50:51 +02:00
Alex Schroeder
06e4dc016f Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-03-29 18:45:40 +03:00
Alex Schroeder
a0b8e9915e not-found-handler.pl uses strict 2015-03-29 18:45:14 +03:00
Alex Schroeder
1fbfb29835 near-links.pl uses strict
This should also fix the searching for Near Pages which apparently
didn't work.
2015-03-29 16:46:20 +02:00
Alex Schroeder
2c6f57f6c2 multi-url-spam-block uses strict 2015-03-29 16:36:51 +02:00
Alex Schroeder
5cfbf38206 markdown.pl deleted
This code was hard to maintain because it uses the actual markup code
and replaced a lot of Oddmuse machinery. Just use markdown-rule.pl
instead if you need it.
2015-03-29 15:43:50 +02:00
Alex Schroeder
214ac24489 logbannedcontent.pl uses strict
Uses the same code and comment as banned-regexps.pl
2015-03-29 15:17:13 +02:00
Alex Schroeder
8e12771f28 mac.pl actually uncomment use strict 2015-03-29 15:16:57 +02:00
Alex Schroeder
78ed9f22b1 list-banned-content uses strict
This should now correctly list pages banned due to BannedContent.
Previously, there was a stray variable $str instead of the actual page
content being matched.
2015-03-29 15:13:38 +02:00
Alex Schroeder
a45af5e7f5 link-all uses strict
Get rid of $IndexInit from UseMod days.
2015-03-29 15:07:37 +02:00
Alex Schroeder
fa99ee5ec4 mac.pl uses strict
Also get rid of $IndexInit from UseMod days.
2015-03-29 15:06:57 +02:00
Alex Schroeder
74123ad906 latex.pl uses strict
This should make sure that we do in fact run the cleanup code even if
an error occured. Also, whitespace changes because it was a pain to
read.
2015-03-29 14:56:52 +02:00
Alex Schroeder
d317275a1a journal-rss.pl uses strict
Should fix filtering by language, too.
2015-03-29 14:35:59 +02:00
Alex Schroeder
427fdfbd6b index.pl uses strict
This should also fix the use of the 'match' parameter.
2015-03-29 14:27:52 +02:00
Alex Schroeder
9d08313ee3 Make creole.pl use strict 2015-03-29 14:22:52 +02:00
Alex Schroeder
7db3609c24 Deleted balanced-page-directories.pl
This module was deprecated. Oddmuse no longer disperses page data files
into 27 directories based on the first character of the page name. The
directories used to be "A" to "Z", and "other". If you uses your wiki as
a blog, all the pages starting with a date ended up in "other". If your
page names started with letters other than "A" to "Z", all the pages
ended up in "other". If you were using comment pages, all your comment
pages ended in "C". This module was intended to create more
subdirectories and spread them more evenly. This is no longer necessary,
as the typical filesystem's performance no longer degrades with tens of
thousands of files in a directory. I'm assuming most Oddmuse hosts to
use some form of GNU/Linux with ext3 or ext4 with dir_index option.
2015-03-29 13:45:03 +02:00
Alex Schroeder
63ba06d956 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-03-29 13:42:37 +02:00
Alex Schroeder
516be3cbf5 Moved the month-names into translations subdir 2015-03-29 13:33:13 +02:00
Alex Schroeder
e58cb89c94 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-03-28 18:28:52 +02:00
Alex Schroeder
2f779656fc atom.pl ready for use strict 2015-03-28 18:28:33 +02:00
Alex Schroeder
88f1452d09 joiner.pl is ready for use strict. 2015-03-28 17:20:03 +01:00
Alex Schroeder
a886aa313d Make hibernal.pl ready for use strict. 2015-03-28 17:17:55 +01:00
Alex Schroeder
9cfa0ba148 gravatar.pl ready for use strict
Looks like a simple typo.
2015-03-28 16:45:10 +01:00
Alex Schroeder
9a1f5b0f4a gd_security_image.pl ready for use strict
GetEditForm uses the second parameter to indicate that it's an upload.
We need to pass it via NewGdSecurityImageGetEditForm to
GdSecurityImageAddTo if we want to use it there.
2015-03-28 16:38:52 +01:00
Alex Schroeder
0f9db16064 edit-cluster.pl ready for use strict 2015-03-28 16:24:33 +01:00
Alex Schroeder
df41a61571 Delete debug.pl
Nobody uses it and debugging usually needs more specific code.
2015-03-28 16:18:10 +01:00
Alex Schroeder
614cb29216 Deleting config.pl
DoConfig was implemented but DoClone was not; these days it makes more
sense to simply use a source repository to share wiki configurations.
2015-03-28 16:14:43 +01:00
Alex Schroeder
240a79d9b9 clustermap.pl fit for use strict 2015-03-28 16:11:03 +01:00
Alex Schroeder
fec7afdffd Removed beautify.pl
The Beautifier::Core library is not available from CPAN.
The beautifier.org website is not longer available.
The sources are still on Source Forge but it seems clear that this is a
dead end.
2015-03-28 15:46:51 +01:00
Alex Schroeder
5147b26b23 Use strict
Added a comment to explain these lines.

my $RegexpOldBannedContent;
*RegexpOldBannedContent = *BannedContent;
*BannedContent = *RegexpNewBannedContent;
$BannedContent = $RegexpOldBannedContent;
2015-03-28 15:22:45 +01:00
Alex Schroeder
9e738265cc anchors.pl: get rid of $free
This was a strange variable that wasn't set anywhere. At the same time,
we fixed the title attribute for bracket links like this: [1].
2015-03-28 14:55:25 +01:00
Alex Schroeder
ef8f0a3743 webdav.pl replace Perl license with GPL
According to http://dev.perl.org/licenses/ the Perl license is either
the GPL or the Artistic license. We'll pick the GPL so that it matches
the rest of Oddmuse.
2015-03-28 14:36:13 +01:00
Alex Schroeder
7741630053 vcard.pl added license 2015-03-28 14:24:26 +01:00
Alex Schroeder
19684a9edc edit-cluster.pl: add missing license 2015-03-28 14:16:17 +01:00
Alex Schroeder
20bdba9eb4 mail.pl: added missing licence 2015-03-28 14:12:26 +01:00
Alex Schroeder
a9d1bc2bfa Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-03-27 13:24:56 +01:00
Alex Schroeder
34f5cba461 Get rid of extra $revision
Both despam.pl and static-hybrid.pl print a useless $revision at the
very end. This was removed.
2015-03-27 13:22:17 +01:00
Alex Schroeder
2d1dbe6dcd Merge branch 'use-strict-in-modules' 2015-03-27 13:33:13 +02:00
Alex Schroeder
013588da6f Merge commit '5e4426b' 2015-03-27 12:12:47 +01:00
Alex Schroeder
bdac3f3e20 weblog-1.pl: $RefererTracking is a leftover from back when referrer tracking was part of the core. 2015-03-27 12:59:09 +02:00
Alex Schroeder
5137c2bf3e mail.pl: There is no reason to have module-global %h 2015-03-27 12:58:53 +02:00
Alex Schroeder
6b36c471f8 Deleted thread.pl module 2015-03-27 11:44:54 +01:00
Alex Schroeder
a4e0e5a9be "use strict;" in modules (some modules have problems) 2015-03-27 03:01:01 +02:00
Alex Schroeder
c1f34b3a2f calendar.pl: no more annoying space delimiters in links 2015-03-19 04:02:40 +02:00
Alex Schroeder
cd469598d1 markup.pl: fix corner cases for markup pairs
Some support for corner cases was added, including tests. Now it should
be possible to write the following without the code triggering:

"foo*bar is not ** foo bar" -- this should no longer be bold.
2015-03-17 07:48:29 +01:00
Alex Schroeder
1e3aa20fce all.pl: our $Monolithic
Using 'our' allows other modules to refer to this variable as well.
image.pl will now generate a local link, for example.
2015-03-17 07:15:41 +01:00