Files
oddmuse/modules
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
..
2015-03-29 22:47:41 +02:00
2015-03-27 12:12:47 +01:00
2015-03-28 14:55:25 +01:00
2015-03-28 18:28:33 +02:00
2015-03-27 12:12:47 +01:00
2015-03-28 16:11:03 +01:00
2015-03-29 14:22:52 +02:00
2015-03-27 13:22:17 +01:00
2014-11-06 21:48:08 +01:00
2015-03-28 16:45:10 +01:00
2015-03-29 14:27:52 +02:00
2015-03-28 17:20:03 +01:00
2015-03-29 14:35:59 +02:00
2015-03-29 14:56:52 +02:00
2015-03-29 15:07:37 +02:00
2015-03-29 15:16:57 +02:00
2015-03-28 14:12:26 +01:00
2015-03-29 23:15:35 +02:00
2015-03-29 16:46:20 +02:00
2015-03-29 23:27:00 +02:00
2015-03-29 17:53:08 +02:00
2015-03-29 23:31:13 +02:00
2015-03-29 23:44:34 +02:00
2015-03-27 13:22:17 +01:00
2015-03-29 23:18:07 +02:00
2014-08-13 12:06:55 +02:00
2015-03-28 14:24:26 +01:00
2015-03-29 23:42:09 +02:00
2015-03-29 23:46:26 +02:00
2015-03-29 23:53:39 +02:00