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/export_gcs.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'api/export_gcs.php') diff --git a/api/export_gcs.php b/api/export_gcs.php index 1040dd4..6f1f4c2 100644 --- a/api/export_gcs.php +++ b/api/export_gcs.php @@ -12,8 +12,9 @@ if($GLOBALS['enableGoogleCustomSearch'] == false) { die; } +/* Service creation: only useful services are created */ $bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService'); -$userservice =& ServiceFactory::getServiceInstance('UserService'); + /* // Restrict to admins? @@ -36,8 +37,6 @@ $tag = NULL; // Get the posts relevant to the passed-in variables. $bookmarks =& $bookmarkservice->getBookmarks(0, NULL, NULL, $tag, NULL, getSortOrder()); -$currentuser = $userservice->getCurrentUser(); -$currentusername = $currentuser[$userservice->getFieldName('username')]; // Set up the plain file and output all the posts. header('Content-Type: text/plain'); -- cgit v1.2.3