Migrated ZakFormElementIValidator from interface to abstract class.
authorAndrea Zagli <azagli@libero.it>
Sun, 1 Nov 2015 09:22:39 +0000 (10:22 +0100)
committerAndrea Zagli <azagli@libero.it>
Sun, 1 Nov 2015 09:22:39 +0000 (10:22 +0100)
tests/form.c

index 8b30f4c1194e3758d66d6182615cddbe553978f6..50fd07d8ac5cfab2828542a1de8488ad27975c04 100644 (file)
@@ -67,7 +67,7 @@ main (int argc, char *argv[])
        zak_form_element_add_filter (ZAK_FORM_ELEMENT (element),
                                                                         ZAK_FORM_ELEMENT_IFILTER (zak_form_element_filter_trim_new ()));
        zak_form_element_add_validator (ZAK_FORM_ELEMENT (element),
-                                                                               ZAK_FORM_ELEMENT_IVALIDATOR (zak_form_element_validator_regex_new ("^aaa$")));
+                                                                               ZAK_FORM_ELEMENT_VALIDATOR (zak_form_element_validator_regex_new ("^aaa$")));
        zak_form_form_add_element (ZAK_FORM_FORM (form), ZAK_FORM_ELEMENT (element));
 
        element = zak_cgi_form_element_check_new ("chk", NULL);