Fix setting of public url for files attached to posts
[dotclear.git] / page.webservice.php
index 2492c16..8ae6e58 100644 (file)
@@ -72,6 +72,7 @@ class XorgWebservice extends dcUrlHandlers {
 
     $settings = new dcSettings($core, $owner);
     $settings->system->put('public_path', 'public/' . $owner);
+    $settings->system->put('public_url', '/public/' . $owner);
 
     return array('status' => true,
                  'message' => 'blog created');