summaryrefslogtreecommitdiffstats
path: root/settings/help.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-08-17 00:24:50 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-08-17 00:24:50 +0200
commitcb9fc6d901c59999f3ebd369449e4a845680665d (patch)
treed142cc1a9256225498fecdd56386c870777f69e8 /settings/help.php
parent9f28c20660e113c501a951262765ce9c9c4d0e84 (diff)
downloadnextcloud-server-cb9fc6d901c59999f3ebd369449e4a845680665d.tar.gz
nextcloud-server-cb9fc6d901c59999f3ebd369449e4a845680665d.zip
make the help section working and pretty. knowledge base entries are fetched via OCS from a different server. cool stuff
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 );