Commit Graph

21 Commits

Author SHA1 Message Date
Aleks-Daniel Jakimenko
4eef4d2d76 No more /o, modifiers sorted alphabetically 2015-08-23 21:22:12 +03:00
Alex Schroeder
58e9a1e240 use v5.10 everywhere + enabled test in meta.t 2015-08-18 10:48:03 +02:00
Alex Schroeder
dfa71cb2e3 Revert "Changed EN DASH to - in copyright lines"
This reverts commit 06c7fedec0.
2015-07-28 22:44:53 +02:00
Alex Schroeder
06c7fedec0 Changed EN DASH to - in copyright lines
The EN DASH is not really required in year ranges such as 2012–2015 when
we're talking about comments in source code that is probably being
displayed in a fixed font anyway. Changing back to an ordinary hypen
allows us to make a meaningful test for use utf8.
2015-07-28 22:14:37 +02:00
Aleks-Daniel Jakimenko
6f8d281d79 No more "use vars"! 2015-04-10 13:31:28 +03:00
Aleks-Daniel Jakimenko
88aac79df3 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
4df99dc798 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
5d03331bb3 multi-url-spam-block uses strict 2015-03-29 16:36:51 +02:00
Aleks-Daniel Jakimenko
4492ede096 "use strict;" in modules (some modules have problems) 2015-03-27 03:01:01 +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
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
c7db74f24d Update copyright year 2008-01-12 22:56:44 +00:00
Alex Schroeder
b15d41507a (NewMultiUrlBannedContent): Move
code to MultiUrlBannedContent.
(MultiUrlBannedContent): Disable the rule for the LocalNames page.
2008-01-12 22:55:56 +00:00
Alex Schroeder
3a33ed5383 ($MultiUrlLimit): Changed the
default to 10.
2007-11-06 10:23:29 +00:00
Alex Schroeder
bd3727e806 Add to PlainTextPages. 2007-11-02 17:38:47 +00:00
Alex Schroeder
f151710ad0 ($MultiUrlWhiteList): New option.
(NewMultiUrlBannedContent): Use whitelist.
2007-11-02 17:34:41 +00:00
Alex Schroeder
cfa43b6a6d use vars. 2007-10-30 08:50:18 +00:00
Alex Schroeder
b887c57e37 (NewMultiUrlBannedContent): Make
the limit configurable.
2007-10-30 08:47:59 +00:00
Alex Schroeder
626b7e0f3b Copy $BannedContent 2007-10-27 19:33:43 +00:00
Alex Schroeder
a5856847f6 New. 2007-10-27 18:49:26 +00:00