Make loading a content filter by name case insensitive.
Patch by yvi.
diffs (13 lines):
diff -r f3b6b45d71b8 -r 460d1d159642 cgi-bin/DW/User/ContentFilters.pm
--- a/cgi-bin/DW/User/ContentFilters.pm Thu Oct 08 19:06:21 2009 -0500
+++ b/cgi-bin/DW/User/ContentFilters.pm Thu Oct 08 19:23:06 2009 -0500
@@ -43,7 +43,8 @@ sub content_filters {
my @list =
sort { $a->sortorder <=> $b->sortorder }
grep { $args{public} ? $_->public : 1 }
- grep { $args{name} ? $_->name eq $args{name} : 1 }
+ # return content filter regardless of case
+ grep { $args{name} ? lc($_->name) eq lc($args{name}) : 1 }
grep { $args{id} ? $_->id == $args{id} : 1 }
@_;
return wantarray ? @list : $list[0];
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog