Tigzy/malware-repo

Can't change max malware list in index

Closed this issue · 1 comments

In the index , the default 'max files' is 40 until it goes to a new page
I wanted to decrease this number to 15 , but it doesn't work
Tried changing it to 20 , didn't work either

Here's the line

Thanks!

Tigzy commented

Hello,
this is a initial value and is modified at runtime by javascript:
https://github.com/Tigzy/malware-repo/blob/master/public/js/main.js#L141

The server side code is here:
https://github.com/Tigzy/malware-repo/blob/master/src/functions.php#L381

So if you want to change the max number of items per page, it's in the config file:
$GLOBALS["config"]["ui"]["files_per_page"]

Hope that helps