From d6889066c0d285bf59e89b484800443304585b68 Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 5 Dec 2008 07:25:04 +0000 Subject: Major Refactoring: finish transforming into object . Put and into header.inc.php. git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@199 b3834d28-1941-0410-a4f8-b48e95affb8f --- api/posts_update.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'api/posts_update.php') diff --git a/api/posts_update.php b/api/posts_update.php index de379d2..6ea50e2 100644 --- a/api/posts_update.php +++ b/api/posts_update.php @@ -8,14 +8,13 @@ require_once('httpauth.inc.php'); require_once('../header.inc.php'); +/* Service creation: only useful services are created */ $bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService'); -$userservice =& ServiceFactory::getServiceInstance('UserService'); + // Get the posts relevant to the passed-in variables. $bookmarks =& $bookmarkservice->getBookmarks(0, 1, $userservice->getCurrentUserId()); -$currentuser = $userservice->getCurrentUser(); -$currentusername = $currentuser[$userservice->getFieldName('username')]; // Set up the XML file and output all the tags. header('Content-Type: text/xml'); -- cgit v1.2.3-54-g00ecf