mock build.Part 3

This commit is contained in:
alexey
2025-03-16 00:12:37 +03:00
parent 6520ca97df
commit c9ac228ab6
9 changed files with 165 additions and 5 deletions

View File

@@ -70,4 +70,16 @@ class IniConfig
"locks/counter"
end
end
def get_items_per_page()
unless @config["pages"]["items_per_page"].nil?
res = @config["pages"]["items_per_page"].to_i
if res < 1
res = 30
end
res
else
30
end
end
end