Changeset 10264
- Timestamp:
- 09/16/2020 04:26:25 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/send.php
r9228 r10264 18 18 protected $text = ''; 19 19 protected $attachments = array(); 20 protected $link_names = 0; 20 21 21 22 function __construct( $webhook ) { … … 69 70 } 70 71 72 function set_link_names( $bool = false ) { 73 $this->link_names = (int) $bool; 74 } 75 71 76 function get_payload() { 72 77 $icon = $this->get_icon(); … … 77 82 'username' => $this->get_username(), 78 83 'attachments' => $this->get_attachments(), 79 'link_names' => 1,84 'link_names' => $this->link_names, 80 85 ); 81 86
Note: See TracChangeset
for help on using the changeset viewer.