Fix setting of public url for files attached to posts
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 29 May 2010 23:02:40 +0000 (01:02 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 29 May 2010 23:06:17 +0000 (01:06 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
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');