Changeset 2464691
- Timestamp:
- 01/29/2021 06:29:25 AM (5 years ago)
- File:
-
- 1 edited
-
books-papers/trunk/books-n-papers.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
books-papers/trunk/books-n-papers.php
r2464386 r2464691 744 744 if(isset($_POST["tag" . $k])) 745 745 { //relates tags with article 746 print_r("tag found : " . $_POST["tag" . $k]);747 print_r(" check : " . $this->bridge->checkTag(sanitize_text_field($_POST["tag" . $k])) . " \n");748 746 $this->bridge->addArticleTag($this->bridge->checkTag(sanitize_text_field($_POST["tag" . $k])), $art_id); 749 747 } … … 765 763 } 766 764 } 765 if(isset($_POST["tag"])) 766 { //relates tags with article 767 $this->bridge->addConferenceTag($this->bridge->checkTag(sanitize_text_field($_POST["tag"])), $art_id); 768 } 769 for($k = 0; $k <= 20; $k++) 770 { 771 if(isset($_POST["tag" . $k])) 772 { //relates tags with article 773 $this->bridge->addConferenceTag($this->bridge->checkTag(sanitize_text_field($_POST["tag" . $k])), $art_id); 774 } 775 } 767 776 } else if(sanitize_text_field($_POST["paperType"])=="book") //inserts book info 768 777 { … … 786 795 { //relates every editor with book 787 796 $this->bridge->addBookEditor($this->bridge->checkAuthor(sanitize_text_field($_POST["editor" . $k])), $art_id); 797 } 798 } 799 if(isset($_POST["tag"])) 800 { //relates tags with article 801 $this->bridge->addBookTag($this->bridge->checkTag(sanitize_text_field($_POST["tag"])), $art_id); 802 } 803 for($k = 0; $k <= 20; $k++) 804 { 805 if(isset($_POST["tag" . $k])) 806 { //relates tags with article 807 $this->bridge->addBookTag($this->bridge->checkTag(sanitize_text_field($_POST["tag" . $k])), $art_id); 788 808 } 789 809 }
Note: See TracChangeset
for help on using the changeset viewer.