From 45f43e05103232d9b4888a37d5bf70edc8b6c216 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Fri, 27 Jan 2006 21:57:53 +0000 Subject: replace old code with new versions - we need to stop babysitting outdated code --- rankings.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'rankings.php') diff --git a/rankings.php b/rankings.php index 65b739e..44564d1 100644 --- a/rankings.php +++ b/rankings.php @@ -1,6 +1,6 @@ verifyPackage( 'wiki' ); -if ($feature_wiki_rankings != 'y') { - $gBitSmarty->assign('msg', tra("This feature is disabled").": feature_wiki_rankings"); - $gBitSystem->display( 'error.tpl' ); - die; -} -if (!$gBitUser->hasPermission( 'bit_p_view' )) { - $gBitSmarty->assign('msg', tra("Permission denied you cannot view this section")); - $gBitSystem->display( 'error.tpl' ); - die; -} +$gBitSystem->verifyFeature( 'feature_wiki_rankings' ); +$gBitSystem->verifyPermission( 'bit_p_view' ); // Get the page from the request var or default it to HomePage + if (!isset($_REQUEST["limit"])) { $limit = 10; } else { -- cgit v1.3