From: Robin Appelman Date: Thu, 21 Apr 2011 21:04:16 +0000 (+0200) Subject: change printPageNavi() to getPageNavi() to allow some more flexibility X-Git-Tag: v3.0~267^2~558^2~34^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf76cad9317fae94c4dc9328db777e0feb562d26;p=nextcloud-server.git change printPageNavi() to getPageNavi() to allow some more flexibility --- diff --git a/help/templates/index.php b/help/templates/index.php index 262ab3d8cab..a117c3d5fb4 100644 --- a/help/templates/index.php +++ b/help/templates/index.php @@ -15,7 +15,8 @@ printPage(); ?> ASK A QUESTION 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; } }