From 1eca2d231c79c046a3c122a09bd761fa8f641a6e Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 19 May 2009 15:59:55 +0000 Subject: Many interface changes: add 'back to the top links', a variable to display more bookmarks for admins... git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@329 b3834d28-1941-0410-a4f8-b48e95affb8f --- functions.inc.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'functions.inc.php') diff --git a/functions.inc.php b/functions.inc.php index 48c7178..08d5f33 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -35,9 +35,14 @@ function filter($data, $type = NULL) { return $data; } -function getPerPageCount() { - global $defaultPerPage; - return $defaultPerPage; +function getPerPageCount($userObject = null) { + global $defaultPerPage, $defaultPerPageForAdmins; + + if(isset($defaultPerPageForAdmins) && $userObject != null && $userObject->isAdmin()) { + return $defaultPerPageForAdmins; + } else { + return $defaultPerPage; + } } function getSortOrder($override = NULL) { -- cgit v1.2.3