mock build.Part 3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user