Changeset

4846:ad7767a9f3ea

mod_bookmarks2: Fix check for max_items=max support This function does not throw, it just returns a boolean.
author Kim Alvefur <zash@zash.se>
date Tue, 04 Jan 2022 23:00:04 +0100
parents 4845:6e17df6becec
children 4847:a280878c4ef2
files mod_bookmarks2/mod_bookmarks2.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_bookmarks2/mod_bookmarks2.lua	Tue Jan 04 22:59:24 2022 +0100
+++ b/mod_bookmarks2/mod_bookmarks2.lua	Tue Jan 04 23:00:04 2022 +0100
@@ -20,7 +20,7 @@
 	["access_model"] = "whitelist";
 };
 
-if not pcall(mod_pep.check_node_config, nil, nil, default_options) then
+if not mod_pep.check_node_config(nil, nil, default_options) then
 	-- 0.11 or earlier not supporting max_items="max" trows an error here
 	module:log("debug", "Setting max_items=pep_max_items because 'max' is not supported in this version");
 	default_options["max_items"] = module:get_option_number("pep_max_items", 256);