Want to increase Top Killers in Corp Detail

Development information and discussion about EDK.
Post Reply
Bas
Apprentice
Posts: 65
Joined: Sun Apr 20, 2014 12:11
Location: Russia, Moscow
Contact:

Want to increase Top Killers in Corp Detail

Post by Bas »

https://kb.*/?a=corp_detail&crp_ext_id=*&view=pilot_kills

Can't find in files :(
How i can increase 10 to 25, for example.
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: Want to increase Top Killers in Corp Detail

Post by Salvoxia »

Hi,

open common/corp_detail.php and find this block of code (around line 405):

Code: Select all

case "pilot_kills":
	$smarty->assign('title', 'Top Killers');
	$smarty->assign('crp_id', $this->crp_id);
	$smarty->assign('url_previous', edkURI::build($args, array('view', 'pilot_kills', true), $pyearUrlArgument, $pmonthUrlArgument));
	$smarty->assign('url_next', edkURI::build($args, array('view', 'pilot_kills', true), $nyearUrlArgument, $nmonthUrlArgument));

	$list = new TopList_Kills();
After that, add this line:

Code: Select all

$list->setLimit(25);

A few lines further down you'll find another instance of

Code: Select all

$list = new TopList_Kills();
Add the same line after that one.

Best Regards,
Salvoxia
Bas
Apprentice
Posts: 65
Joined: Sun Apr 20, 2014 12:11
Location: Russia, Moscow
Contact:

Re: Want to increase Top Killers in Corp Detail

Post by Bas »

Thank you, Salvoxia!
Looks fine :)
Post Reply