mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-20 17:54:25 +01:00
Correct get of title from bookmarklet
This commit is contained in:
parent
3709e4e475
commit
8ed12564cc
@ -29,14 +29,13 @@ OCP\JSON::checkAppEnabled('bookmarks');
|
||||
|
||||
// If we go the dialog form submit
|
||||
if(isset($_POST['url'])) {
|
||||
$title = '';
|
||||
$title = isset($_POST['title']) ? $_POST['title'] : '';
|
||||
$tags = isset($_POST['item']['tags']) ? $_POST['item']['tags'] : array();
|
||||
$pub = isset($_POST['is_public']) ? true : false;
|
||||
|
||||
if(isset($_POST['record_id']) && is_numeric($_POST['record_id']) ) { //EDIT
|
||||
$bm = $_POST['record_id'];
|
||||
OC_Bookmarks_Bookmarks::editBookmark($bm, $_POST['url'], $_POST['title'], $tags, $_POST['description'], $pub);
|
||||
$title = $_POST['title'];
|
||||
}
|
||||
else {
|
||||
if(isset($_POST['from_own'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user