summaryrefslogtreecommitdiffstats
path: root/settings/help.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/help.php')
-rw-r--r--settings/help.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/settings/help.php b/settings/help.php
index b6466d282bf..731ae09a0af 100644
--- a/settings/help.php
+++ b/settings/help.php
@@ -6,17 +6,17 @@ if( !OC_User::isLoggedIn()){
exit();
}
-//hardcode for testing
-$pagecount=8;
-$page=2;
-
// Load the files we need
OC_Util::addStyle( "settings", "settings" );
OC_App::setActiveNavigationEntry( "help" );
-$kbe=OC_OCSClient::getKnownledgebaseEntries();
-
+$pagesize=5;
+if(isset($_GET['page'])) $page=$_GET['page']; else $page=0;
+$kbe=OC_OCSClient::getKnownledgebaseEntries($page,$pagesize);
+$totalitems=$kbe['totalitems'];
+unset($kbe['totalitems']);
+$pagecount=ceil($totalitems/$pagesize);
$tmpl = new OC_Template( "settings", "help", "user" );
$tmpl->assign( "kbe", $kbe );