summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-21 23:04:16 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-21 23:04:16 +0200
commitcf76cad9317fae94c4dc9328db777e0feb562d26 (patch)
tree1d4591c71a59e7c2c734f87caa326705fa79440e /lib
parent741519fa79bcc261479a1745c347413c75128ed4 (diff)
downloadnextcloud-server-cf76cad9317fae94c4dc9328db777e0feb562d26.tar.gz
nextcloud-server-cf76cad9317fae94c4dc9328db777e0feb562d26.zip
change printPageNavi() to getPageNavi() to allow some more flexibility
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php
index 324b2f7e0a0..1ab9b23bccb 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -244,9 +244,9 @@ class OC_UTIL {
* @param int $pagecount
* @param int $page
* @param string $url
- * @return html-string
+ * @return OC_TEMPLATE
*/
- public static function showPageNavi($pagecount,$page,$url) {
+ public static function getPageNavi($pagecount,$page,$url) {
$pagelinkcount=8;
if ($pagecount>1) {
@@ -261,7 +261,7 @@ class OC_UTIL {
$tmpl->assign('pagestart',$pagestart);
$tmpl->assign('pagestop',$pagestop);
$tmpl->assign('url',$url);
- $tmpl->printPage();
+ return $tmpl;
}
}