Commit Graph

1897 Commits

Author SHA1 Message Date
Alex Schroeder
4ecfb82591 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-04-03 09:15:15 +02:00
Alex Schroeder
f074ef1945 pygmentize.pl: register lock 2015-04-03 09:14:04 +02:00
Alex Schroeder
b1e9ef1f9c headers.pl: no whitespace in $RuleOrder{...} for consistency and easier parsing 2015-04-03 01:35:46 +03:00
Alex Schroeder
8485109597 pygmentize.pl: add our $TempDir 2015-04-02 10:46:54 +02:00
Alex Schroeder
2c6641a924 pygmentize.pl: @PygmentizeArgs option 2015-04-02 04:59:35 +03:00
Alex Schroeder
14dd5574ea module-updater.pl: fixed a problem with unicode 2015-04-01 17:55:48 +03:00
Alex Schroeder
b5543521cb Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-04-01 01:07:02 +03:00
Alex Schroeder
38d6152855 New module: pygmentize.pl (syntax highlighting) 2015-04-01 01:05:55 +03:00
Alex Schroeder
b5eee0589f Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-03-30 22:11:05 +02:00
Alex Schroeder
0fa2011622 anchors.pl supports redirection 2015-03-30 22:09:45 +02:00
Alex Schroeder
4e1cd719f4 It is not that weird anymore! *Sub = *NewSub changed to *Sub = \&NewSub
We have just read-TFM and figured out that we can use \&Sub. This way it
passes "use strict" but produces a warning with "use warnings" (the
warning is "Subroutine package::Sub redefined at ...").

We can "fix" it with "no warnings 'redefine'"
2015-03-30 09:58:33 +03:00
Alex Schroeder
10b70c867a Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-03-30 00:52:21 +02:00
Alex Schroeder
b19378fdc8 weblog-3.pl: Move $CategoryInit up 2015-03-30 00:47:19 +02:00
Alex Schroeder
d16c1898aa Banning modules use our instead of my
All the banning modules have a problem. They use code like the
following:

*StrangeOldBannedContent = *BannedContent;
*BannedContent = *StrangeNewBannedContent;

The code above changes both the sub and the variable. $BannedContent now
points to $StrangeNewBannedContent (which is undefined) and the name of
the Banned Content page is only accessible via $StrangeOldBannedContent.
If we copy $StrangeOldBannedContent to $BannedContent, everything else
will keep working.

$BannedContent = $StrangeOldBannedContent;

But now use strict will not work. When we tried this:

my $StrangeOldBannedContent; # use strict

Then BannedContent disappeared from the admin page as shown by the tests
in strange-spam.t; the correct solution uses our instead of my.

I'm not sure why.
2015-03-30 00:29:39 +02:00
Alex Schroeder
c7df9575a4 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-03-30 01:23:54 +03:00
Alex Schroeder
875aa5f6a5 markup.pl: fix issue that caused test to fail
The hashref for the attributes cannot be undefined. Use {} instead of
undef.
2015-03-30 00:20:27 +02:00
Alex Schroeder
d1a29f727c static-hybrid.pl uses strict
It looks like a typo. This line looked like this right from the start.
2015-03-30 01:20:20 +03:00
Alex Schroeder
6bca6e1113 weblog-4.pl uses strict
The reference to %Categories was a copy and paste error from
weblog-3.pl.
2015-03-29 23:53:39 +02:00
Alex Schroeder
87c75d5052 weblog-3 uses strict
$CategoryInit prevents CategoryInit from running multiple times in a
mod_perl setup.
2015-03-29 23:46:26 +02:00
Alex Schroeder
c9f099843b sistersites.pl uses strict
Like in index.pl, we need to assign $match from the parameter, first.
2015-03-29 23:44:34 +02:00
Alex Schroeder
7f25a1cf7f weblog-2.pl uses strict
Use GetId to determine $id.
2015-03-29 23:42:09 +02:00
Alex Schroeder
54f56dad9d simple-rules.pl uses strict
Variables which are essentially global and which contain state are
localized before they are set. In order to localize them, they have to
be declared here using vars, first.
2015-03-29 23:31:13 +02:00
Alex Schroeder
2d2b55decf pdf.pl uses strict
PdfNewGetFooterLinks shows that @NoLinkToPdf is simply a list of pages
that should not offer a PDF link at the bottom. Authors can add their
own exceptions to PdfNewGetFooterLinks, I guess, but in order to do
this from your config file, use vars.

createPDF needs $id as a parameter in order to use it. This code
worked before because the calling context was missing a my $id and
thus $id ended up being a global variable.
2015-03-29 23:27:00 +02:00
Alex Schroeder
a864f27676 questionasker.pl ready for use strict
GetEditForm uses the second parameter to indicate that it's an upload.
We need to pass it via to QuestionAddTo if we want to use it there.
2015-03-29 23:21:14 +02:00
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