Commit 1db485f4 authored by nkoth's avatar nkoth

[FIX] make top pages ranking consistent whether using module or wiki_rankings....

[FIX] make top pages ranking consistent whether using module or wiki_rankings. Not sure what else still using get_top_pages  - it is duplicated code to the stuff in ranklib.
parent f300c8b7
......@@ -6,9 +6,10 @@ if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
exit;
}
$ranking = $tikilib->get_top_pages($module_rows);
include_once ('lib/rankings/ranklib.php');
$ranking = $ranklib->wiki_ranking_top_pages($module_rows);
$smarty->assign('modTopPages', $ranking);
$smarty->assign('modTopPages', $ranking["data"]);
$smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n');
$smarty->assign('module_rows', $module_rows);
?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment