Changeset

9245:cc32aae5c7da

mod_pubsub: Use dataforms validation to specify that max_items is an integer
author Kim Alvefur <zash@zash.se>
date Sat, 01 Sep 2018 03:02:44 +0200
parents 9244:b3b156bd9914
children 9246:397e8e5a2f1f
files plugins/mod_pubsub/pubsub.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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";