aboutsummaryrefslogtreecommitdiff
path: root/functions.inc.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-05-19 15:59:55 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-05-19 15:59:55 +0000
commit1eca2d231c79c046a3c122a09bd761fa8f641a6e (patch)
tree7584daebb596d852e1d1a813a90bba5686925de3 /functions.inc.php
parent01c62e34fcd095e583f00a1890e6f311fbcb47dd (diff)
downloadsemanticscuttle-1eca2d231c79c046a3c122a09bd761fa8f641a6e.tar.gz
semanticscuttle-1eca2d231c79c046a3c122a09bd761fa8f641a6e.tar.bz2
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
Diffstat (limited to 'functions.inc.php')
-rw-r--r--functions.inc.php11
1 files changed, 8 insertions, 3 deletions
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) {