summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Geiger2011-06-09 09:34:44 +0200
committerBjörn Geiger2011-06-09 09:34:44 +0200
commit52ad86c757ce8f37571b70852efb9f4df3d43c6e (patch)
tree65751ca3ec2698651cac533b2bf7287526724f3e
parentFilter API nochmals korrigiert (diff)
downloadpbs2-52ad86c757ce8f37571b70852efb9f4df3d43c6e.tar.gz
pbs2-52ad86c757ce8f37571b70852efb9f4df3d43c6e.tar.xz
pbs2-52ad86c757ce8f37571b70852efb9f4df3d43c6e.zip
Filter API nochmals korrigiert
-rw-r--r--application/controllers/ResourceController.php5
-rw-r--r--scripts/api_filter_test.html2
2 files changed, 4 insertions, 3 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index c5a54d6..8fe2677 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -187,11 +187,12 @@ class ResourceController extends Zend_Controller_Action
$filterentriesID = $filterentriesMapper->save($filterentries);
$filterentries->setID($filterentriesID);
- header('HTTP/1.0 201 Filter created');
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$xml .= "<xml>\n";
- $xml .= "\t<filterid>" . echo $filter->getID() . "</filterid>\n";
+ $xml .= "\t<filterid>" . $filter->getID() . "</filterid>\n";
$xml .= "</xml>";
+
+ header('HTTP/1.0 201 Filter created');
echo $xml;
}
diff --git a/scripts/api_filter_test.html b/scripts/api_filter_test.html
index d66d22f..21d881a 100644
--- a/scripts/api_filter_test.html
+++ b/scripts/api_filter_test.html
@@ -1,5 +1,5 @@
<h2>Add Filter:</h2>
-<form enctype='multipart/form-data' action='http://pbs2.local/resource/addfilter/apikey/apikey1' method='POST'>
+<form enctype='multipart/form-data' action='http://pbs2poolctrl.mp.openslx.org/resource/addfilter/apikey/apikey1' method='POST'>
BootMenuID: <input name='bootmenuID' type='text'/>
Title:<input name='title' type='text'/>
Description:<input name='description' type='text'/>