Skip to content
Snippets Groups Projects
Commit cf76cad9 authored by Robin Appelman's avatar Robin Appelman
Browse files

change printPageNavi() to getPageNavi() to allow some more flexibility

parent 741519fa
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,8 @@
</table>
<?php
$url=OC_HELPER::linkTo( "help", "index.php" ).'?page=';
OC_UTIL::showPageNavi($_['pagecount'],$_['page'],$url);
$pageNavi=OC_UTIL::getPageNavi($_['pagecount'],$_['page'],$url);
$pageNavi->printPage();
?>
<a target="_blank" class="prettybutton" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new">ASK A QUESTION</a>
......
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment