]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add ability to tag an article on creation
authormoparisthebest <admin@moparisthebest.com>
Mon, 12 Jan 2015 23:49:05 +0000 (18:49 -0500)
committermoparisthebest <admin@moparisthebest.com>
Tue, 13 Jan 2015 00:52:41 +0000 (19:52 -0500)
inc/poche/Poche.class.php

index a29cb327c18d6d27c48f84b2f05b9195ee7ab892..c7c59878615b774efc436264723b30915416d19d 100755 (executable)
@@ -180,6 +180,13 @@ class Poche
                         }
                     }
 
+                    // if there are tags, add them to the new article
+                    if (isset($_GET['tags'])) {
+                        $_POST['value'] = $_GET['tags'];
+                        $_POST['entry_id'] = $last_id;
+                        $this->action('add_tag', $url);
+                    }
+
                     $this->messages->add('s', _('the link has been added successfully'));
                 }
                 else {