2008-09-06, 01:07 PM
The stats limit setting is not implemented correctly.
It's applied to the queries that are in the functions to generate the caches. If the limit is set to 10 for example you have 10 entries in the caches most_read_threads and most_viewed_threads.
The user's permissions are applied in the file stats.php by removing threads from the output. If a user has no permission to view threads in the stats they are missing on the page (which is correct) but it also reduces the number of threads shown.
An example: The stats limit is set to 10 and a user has no permission to view 7 of the most viewed threads. Now only 3 subjects are shown on the stats page although the limit is set to 10.
It's applied to the queries that are in the functions to generate the caches. If the limit is set to 10 for example you have 10 entries in the caches most_read_threads and most_viewed_threads.
The user's permissions are applied in the file stats.php by removing threads from the output. If a user has no permission to view threads in the stats they are missing on the page (which is correct) but it also reduces the number of threads shown.
An example: The stats limit is set to 10 and a user has no permission to view 7 of the most viewed threads. Now only 3 subjects are shown on the stats page although the limit is set to 10.