PDA

View Full Version : Reputation Ratings Displayed in cp hardcoded


mister
Sat 21st Jun '03, 7:12pm
I wanted to show more than 5 records in the "Latest Reputation Received" table in the user cp. So I went to the admincp and changed the 5 to 20. Five records still showed.

I found in usercp.php

78: $vboptions['showuserrates'] = intval($vboptions['showuserrates']);
79: $vboptions['showuserrates'] = 5;

The number is hardcoded and my admincp value is getting overridden.
There may be some logical reason for this (waiting to optimize something, etc), but I wanted to bring it to your attention in case it was forgotten or missed.

-Brandon