summaryrefslogtreecommitdiffstats
path: root/lib/ocs.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-07-20 17:51:50 +0200
committerRobin Appelman <icewind@owncloud.com>2012-07-20 17:58:05 +0200
commit48306a3c4f708b80143757acbe9b270be476aab4 (patch)
tree07aa5b940a9126a20892a150139dee347d4cbe75 /lib/ocs.php
parent0e111e1a17140a8a42a3dbf2ecce41e424b2afab (diff)
downloadnextcloud-server-48306a3c4f708b80143757acbe9b270be476aab4.tar.gz
nextcloud-server-48306a3c4f708b80143757acbe9b270be476aab4.zip
fix unused variables
Diffstat (limited to 'lib/ocs.php')
-rw-r--r--lib/ocs.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/ocs.php b/lib/ocs.php
index 1be41202d78..77dd437d6c6 100644
--- a/lib/ocs.php
+++ b/lib/ocs.php
@@ -88,7 +88,6 @@ class OC_OCS {
$method='get';
}elseif($_SERVER['REQUEST_METHOD'] == 'PUT') {
$method='put';
- parse_str(file_get_contents("php://input"),$put_vars);
}elseif($_SERVER['REQUEST_METHOD'] == 'POST') {
$method='post';
}else{
@@ -356,9 +355,6 @@ class OC_OCS {
* @return string xml/json
*/
private static function apiConfig($format) {
- $user=OC_OCS::checkpassword(false);
- $url=substr(OCP\Util::getServerHost().$_SERVER['SCRIPT_NAME'],0,-11).'';
-
$xml['version']='1.5';
$xml['website']='ownCloud';
$xml['host']=OCP\Util::getServerHost();
@@ -416,7 +412,7 @@ class OC_OCS {
*/
private static function activityPut($format,$message) {
// not implemented in ownCloud
- $user=OC_OCS::checkpassword();
+ OC_OCS::checkpassword();
echo(OC_OCS::generatexml($format,'ok',100,''));
}