Skip to content

Commit b4ca8d5

Browse files
committed
fixes kbsali#53 wiki::create() should put rather than post
1 parent 9b8119f commit b4ca8d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Redmine/Api/Wiki.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,14 @@ public function create($project, $page, array $params = array())
6363
'comments' => null,
6464
'version' => null,
6565
);
66-
$params = $this->cleanParams($params);
6766
$params = array_filter(array_merge($defaults, $params));
6867

6968
$xml = new \SimpleXMLElement('<?xml version="1.0"?><wiki_page></wiki_page>');
7069
foreach ($params as $k => $v) {
7170
$xml->addChild($k, $v);
7271
}
7372

74-
return $this->post('/projects/'.$project.'/wiki/'.$page.'.xml', $xml->asXML());
73+
return $this->put('/projects/'.$project.'/wiki/'.$page.'.xml', $xml->asXML());
7574
}
7675

7776
/**

0 commit comments

Comments
 (0)