summaryrefslogtreecommitdiffstats
path: root/lib/ocsclient.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-04-17 17:38:35 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-04-17 17:38:35 +0200
commit60b682561254797330110693705b2c36dd7928a4 (patch)
tree2cda5eabfff0902acee75a7d16993ad69cc6a5a5 /lib/ocsclient.php
parent023c1b2f19ecb3fe1f7ccbda57e73dd476c249e2 (diff)
downloadnextcloud-server-60b682561254797330110693705b2c36dd7928a4.tar.gz
nextcloud-server-60b682561254797330110693705b2c36dd7928a4.zip
show only ownCloud related knowledgebase entries. and make the page pretty
Diffstat (limited to 'lib/ocsclient.php')
-rw-r--r--lib/ocsclient.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ocsclient.php b/lib/ocsclient.php
index 994a889aecf..a3c4659c6e4 100644
--- a/lib/ocsclient.php
+++ b/lib/ocsclient.php
@@ -126,7 +126,7 @@ class OC_OCSCLIENT{
* This function returns a list of all the knowledgebase entries from the OCS server
*/
public static function getKnownledgebaseEntries(){
- $url='http://api.apps.owncloud.com/v1/knowledgebase/data?page=0&pagesize=10';
+ $url='http://api.apps.owncloud.com/v1/knowledgebase/data?type=150&page=0&pagesize=10';
$kbe=array();
$xml=file_get_contents($url);
@@ -138,6 +138,7 @@ class OC_OCSCLIENT{
$kb['id']=$tmp[$i]->id;
$kb['name']=$tmp[$i]->name;
$kb['description']=$tmp[$i]->description;
+ $kb['answer']=$tmp[$i]->answer;
$kb['preview1']=$tmp[$i]->smallpreviewpic1;
$kbe[]=$kb;
}