Clean up constants; we don't need the old one hanging around.
Patch by fu.
diffs (28 lines):
diff -r 6e6ee5877dc2 -r 8b1831bf5414 cgi-bin/DW/User/Edges/WatchTrust.pm
--- a/cgi-bin/DW/User/Edges/WatchTrust.pm Sat Jan 01 19:49:27 2011 +0800
+++ b/cgi-bin/DW/User/Edges/WatchTrust.pm Sat Jan 01 21:22:11 2011 +0800
@@ -246,7 +246,7 @@ sub valid_group_name {
$name =~ s!/+\s*$!!;
# conform to maxes
- $name = LJ::text_trim( $name, LJ::BMAX_GRPNAME2, LJ::CMAX_GRPNAME2 );
+ $name = LJ::text_trim( $name, LJ::BMAX_GRPNAME, LJ::CMAX_GRPNAME );
return $name;
}
diff -r 6e6ee5877dc2 -r 8b1831bf5414 cgi-bin/LJ/Constants.pm
--- a/cgi-bin/LJ/Constants.pm Sat Jan 01 19:49:27 2011 +0800
+++ b/cgi-bin/LJ/Constants.pm Sat Jan 01 21:22:11 2011 +0800
@@ -43,10 +43,8 @@ use constant CMAX_KEYWORD => 40;
use constant CMAX_KEYWORD => 40;
use constant BMAX_PROP => 255; # logprop[2]/talkprop[2]/userproplite (not
userprop)
use constant CMAX_PROP => 100;
-use constant BMAX_GRPNAME => 60;
-use constant CMAX_GRPNAME => 30;
-use constant BMAX_GRPNAME2 => 90; # introduced in dversion6, when we widened
the groupname column
-use constant CMAX_GRPNAME2 => 40; # but we have to keep the old GRPNAME around
while dversion5 exists
+use constant BMAX_GRPNAME => 90;
+use constant CMAX_GRPNAME => 40;
use constant BMAX_BIO => 65535;
use constant CMAX_BIO => 65535;
use constant BMAX_EVENT => 450000;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog