From 82b17be34671852feba16d77f75741e124d76073 Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 23 Nov 2009 19:11:33 +0000 Subject: part of request #2830224: prepare API for short url service git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@570 b3834d28-1941-0410-a4f8-b48e95affb8f --- www/api/posts_add.php | 2 +- www/import.php | 2 +- www/importNetscape.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'www') diff --git a/www/api/posts_add.php b/www/api/posts_add.php index aff8771..441965c 100644 --- a/www/api/posts_add.php +++ b/www/api/posts_add.php @@ -73,7 +73,7 @@ if (is_null($url) || is_null($description)) { if ($bookmarkservice->bookmarkExists($url, $userservice->getCurrentUserId())) $added = false; else - $added = $bookmarkservice->addBookmark($url, $description, $extended, '', $status, $tags, $dt, true); + $added = $bookmarkservice->addBookmark($url, $description, $extended, '', $status, $tags, null, $dt, true); } // Set up the XML file and output the result. diff --git a/www/import.php b/www/import.php index 87f0a9a..0105626 100644 --- a/www/import.php +++ b/www/import.php @@ -100,7 +100,7 @@ function startElement($parser, $name, $attrs) { $bDatetime = gmdate('Y-m-d H:i:s'); } - if ($bookmarkservice->addBookmark($bAddress, $bTitle, $bDescription, '', $status, $tags, $bDatetime, true, true)) + if ($bookmarkservice->addBookmark($bAddress, $bTitle, $bDescription, '', $status, $tags, null, $bDatetime, true, true)) $tplVars['msg'] = T_('Bookmark imported.'); else $tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.'); diff --git a/www/importNetscape.php b/www/importNetscape.php index a941145..dab1ba2 100644 --- a/www/importNetscape.php +++ b/www/importNetscape.php @@ -102,7 +102,7 @@ if ($userservice->isLoggedOn() && sizeof($_FILES) > 0 && $_FILES['userfile']['si $bDatetime = gmdate('Y-m-d H:i:s'); } - if ($bookmarkservice->addBookmark($bAddress, $bTitle, $bDescription, $bPrivateNote, $status, $bCategories, $bDatetime, false, true)) { + if ($bookmarkservice->addBookmark($bAddress, $bTitle, $bDescription, $bPrivateNote, $status, $bCategories, null, $bDatetime, false, true)) { $countImportedBookmarks++; } else { $tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.'); -- cgit v1.2.3