From 703161fcfa27b6a8d1d21d34f1f524dcdb1879b8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 27 Dec 2010 14:03:47 +0100 Subject: [PATCH] HTML-Attribut 'disabled' entfernen, wenn es existiert aber undefiniert ist Ansonsten erschwert es das Setzen sehr... --- SL/Template/Plugin/L.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 068fc1a48..c4f02e618 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -61,6 +61,7 @@ sub attributes { my @result = (); while (my ($name, $value) = each %options) { next unless $name; + next if $name eq 'disabled' && !$value; $value = '' if !defined($value); push @result, _H($name) . '="' . _H($value) . '"'; } -- 2.20.1