summaryrefslogtreecommitdiff
path: root/lib/helpers.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2015-05-11 17:42:06 +0200
committerAaron Parecki <aaron@parecki.com>2015-05-11 17:42:06 +0200
commitcb93a9925be700e5e1b0314f6cf66b19e7da5a34 (patch)
tree7d2cda6a0e4575a658104cdb298cfd9cd77f97d7 /lib/helpers.php
parent475175da5fd90162930acc123712a529f809f961 (diff)
adds a simple publish status UI to show errors
Diffstat (limited to 'lib/helpers.php')
-rw-r--r--lib/helpers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index 073d1e2..4f6b4c1 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -100,7 +100,7 @@ function micropub_post($endpoint, $params, $access_token) {
$post = http_build_query(array_merge(array(
'h' => 'entry'
), $params));
- $post = preg_replace('/%5B[0-9]+%5D/', '%5B%5D', $post);
+ $post = preg_replace('/%5B[0-9]+%5D/', '%5B%5D', $post); // change [0] to []
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);