]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow form ->li() to set $class
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 22 Nov 2015 23:40:28 +0000 (00:40 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 22 Nov 2015 23:40:28 +0000 (00:40 +0100)
lib/form.php

index ee97f7a32f571b52e0cf0e4ab79766a5763298bb..fcccb9c7524b4f4f78f4a5f35ec91842923485ec 100644 (file)
@@ -190,9 +190,9 @@ class Form extends Widget
         return 'form';
     }
 
-    function li()
+    function li($class=null)
     {
-        $this->out->elementStart('li');
+        $this->out->elementStart('li', $class);
     }
 
     function unli()