# HG changeset patch # User Kim Alvefur # Date 1535763764 -7200 # Node ID cc32aae5c7da2e4914e2b31ee57505484163a3b3 # Parent b3b156bd991405e3a7b0f389de609890414fd46a mod_pubsub: Use dataforms validation to specify that max_items is an integer diff -r b3b156bd9914 -r cc32aae5c7da plugins/mod_pubsub/pubsub.lib.lua --- a/plugins/mod_pubsub/pubsub.lib.lua Sat Sep 01 03:01:55 2018 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sat Sep 01 03:02:44 2018 +0200 @@ -71,6 +71,7 @@ }; { type = "text-single"; + datatype = "xs:integer"; name = "max_items"; var = "pubsub#max_items"; label = "Max # of items to persist";