X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..9a46f7eb41b5e9d4edde8c5cd14a680b24a79f17:/api/posts_all.php
diff --git a/api/posts_all.php b/api/posts_all.php
index 03026c4..0831d9f 100644
--- a/api/posts_all.php
+++ b/api/posts_all.php
@@ -5,11 +5,14 @@
// - doesn't include the filtered tag as an attribute on the root element (we do)
// Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
+
+// set user as logged in so private bookmarks are exported
+$loggedon = true;
$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
-$userservice =& ServiceFactory::getServiceInstance('UserService');
+$userservice =& ServiceFactory::getServiceInstance('UserService');
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
@@ -43,8 +46,7 @@ foreach($bookmarks['bookmarks'] as $row) {
$taglist = 'system:unfiled';
}
- echo "\t\r\n";
+ echo "\t\r\n";
}
echo '';
-?>
\ No newline at end of file