Remove stylesys setter (we only have s2)
Patch by kareila.
diffs (33 lines):
diff -r 56167fd880c4 -r 270cb4ef9de3 cgi-bin/ljhooks.pl
--- a/cgi-bin/ljhooks.pl Sun Jul 05 15:02:05 2009 +0000
+++ b/cgi-bin/ljhooks.pl Sun Jul 05 16:27:44 2009 +0000
@@ -146,17 +146,6 @@ register_setter("newpost_minsecurity", s
return 1;
});
-register_setter("stylesys", sub {
- my ($u, $key, $value, $err) = @_;
- unless ($value =~ /^[sS]?(1|2)$/) {
- $$err = "Illegal value. Must be S1 or S2.";
- return 0;
- }
- $value = $1 + 0;
- $u->set_prop("stylesys", $value);
- return 1;
-});
-
register_setter("maximagesize", sub {
my ($u, $key, $value, $err) = @_;
unless ($value =~ m/^(\d+)[x,|](\d+)$/) {
diff -r 56167fd880c4 -r 270cb4ef9de3 htdocs/manage/index.bml
--- a/htdocs/manage/index.bml Sun Jul 05 15:02:05 2009 +0000
+++ b/htdocs/manage/index.bml Sun Jul 05 16:27:44 2009 +0000
@@ -14,7 +14,7 @@
if ($u) {
LJ::load_user_props($u, "stylesys");
- $u->{'stylesys'} ||= 1;
+ $u->{'stylesys'} ||= 2;
}
$BMLCodeBlock::u = $u;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog