diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2011-08-17 02:24:50 +0400 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2011-08-17 02:24:50 +0400 |
commit | cb9fc6d901c59999f3ebd369449e4a845680665d (patch) | |
tree | d142cc1a9256225498fecdd56386c870777f69e8 /settings/help.php | |
parent | 9f28c20660e113c501a951262765ce9c9c4d0e84 (diff) |
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.php | 12 |
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 ); |