diff options
author | moparisthebest <admin@moparisthebest.com> | 2015-01-12 18:49:05 -0500 |
---|---|---|
committer | moparisthebest <admin@moparisthebest.com> | 2015-01-12 19:52:41 -0500 |
commit | 7f782e44965b005efe01d347dedd1825872b9345 (patch) | |
tree | a0fcd0ce37fa961453237495cb35e84515aae3c0 /inc/poche/Poche.class.php | |
parent | 8ae45e7fe27ab416cf2a30cd2c319940037b7cbf (diff) | |
download | wallabag-7f782e44965b005efe01d347dedd1825872b9345.tar.gz wallabag-7f782e44965b005efe01d347dedd1825872b9345.tar.zst wallabag-7f782e44965b005efe01d347dedd1825872b9345.zip |
Add ability to tag an article on creation
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index a29cb327..c7c59878 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -180,6 +180,13 @@ class Poche | |||
180 | } | 180 | } |
181 | } | 181 | } |
182 | 182 | ||
183 | // if there are tags, add them to the new article | ||
184 | if (isset($_GET['tags'])) { | ||
185 | $_POST['value'] = $_GET['tags']; | ||
186 | $_POST['entry_id'] = $last_id; | ||
187 | $this->action('add_tag', $url); | ||
188 | } | ||
189 | |||
183 | $this->messages->add('s', _('the link has been added successfully')); | 190 | $this->messages->add('s', _('the link has been added successfully')); |
184 | } | 191 | } |
185 | else { | 192 | else { |