Fix form elements in bookmark plugin
This commit is contained in:
parent
66d56456c1
commit
5f81f4c701
|
@ -120,6 +120,7 @@ class BookmarkForm extends Form
|
||||||
// TRANS: Field label on form for adding a new bookmark.
|
// TRANS: Field label on form for adding a new bookmark.
|
||||||
_m('LABEL','URL'),
|
_m('LABEL','URL'),
|
||||||
$this->_url,
|
$this->_url,
|
||||||
|
null,
|
||||||
'url');
|
'url');
|
||||||
$this->unli();
|
$this->unli();
|
||||||
|
|
||||||
|
@ -138,6 +139,7 @@ class BookmarkForm extends Form
|
||||||
// TRANS: Field label on form for adding a new bookmark.
|
// TRANS: Field label on form for adding a new bookmark.
|
||||||
_m('LABEL','Title'),
|
_m('LABEL','Title'),
|
||||||
$this->_title,
|
$this->_title,
|
||||||
|
null,
|
||||||
'title');
|
'title');
|
||||||
$this->unli();
|
$this->unli();
|
||||||
|
|
||||||
|
@ -146,6 +148,7 @@ class BookmarkForm extends Form
|
||||||
// TRANS: Field label on form for adding a new bookmark.
|
// TRANS: Field label on form for adding a new bookmark.
|
||||||
_m('LABEL','Notes'),
|
_m('LABEL','Notes'),
|
||||||
$this->_description,
|
$this->_description,
|
||||||
|
null,
|
||||||
'description');
|
'description');
|
||||||
$this->unli();
|
$this->unli();
|
||||||
|
|
||||||
|
|
|
@ -67,8 +67,7 @@ class BookmarkforurlAction extends Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->checkSessionToken();
|
$this->checkSessionToken();
|
||||||
|
$this->url = $this->trimmed('url');
|
||||||
$this->url = $this->trimmed('initial-bookmark-url');
|
|
||||||
|
|
||||||
if (empty($this->url)) {
|
if (empty($this->url)) {
|
||||||
throw new ClientException(_('URL is required.'), 400);
|
throw new ClientException(_('URL is required.'), 400);
|
||||||
|
|
|
@ -75,7 +75,10 @@ class InitialBookmarkForm extends Form
|
||||||
$this->li();
|
$this->li();
|
||||||
$this->out->input('initial-bookmark-url',
|
$this->out->input('initial-bookmark-url',
|
||||||
// TRANS: Field label on form for adding a new bookmark.
|
// TRANS: Field label on form for adding a new bookmark.
|
||||||
_m('LABEL','URL'));
|
_m('LABEL','URL'),
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
'url');
|
||||||
$this->unli();
|
$this->unli();
|
||||||
|
|
||||||
$this->out->elementEnd('ul');
|
$this->out->elementEnd('ul');
|
||||||
|
|
|
@ -87,10 +87,10 @@ class NewbookmarkAction extends Action
|
||||||
$this->checkSessionToken();
|
$this->checkSessionToken();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->title = $this->trimmed('bookmark-title');
|
$this->title = $this->trimmed('title');
|
||||||
$this->url = $this->trimmed('bookmark-url');
|
$this->url = $this->trimmed('url');
|
||||||
$this->tags = $this->trimmed('bookmark-tags');
|
$this->tags = $this->trimmed('tags');
|
||||||
$this->description = $this->trimmed('bookmark-description');
|
$this->description = $this->trimmed('description');
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user