comparison program/lib/Roundcube/rcube_plugin_api.php @ 21:73124dd49283

More cleaning up php8 Warnings/deprecations, noticed that setting non-my-Dates mailboxes to sort on Date isn't sticky over ctrl-R
author Charlie Root
date Thu, 09 Oct 2025 11:31:41 -0400
parents b6a96bdd6b29
children
comparison
equal deleted inserted replaced
20:4aec5e272733 21:73124dd49283
620 * @param string $html HTML content 620 * @param string $html HTML content
621 * @param string $container Template container identifier 621 * @param string $container Template container identifier
622 */ 622 */
623 public function add_content($html, $container) 623 public function add_content($html, $container)
624 { 624 {
625 $this->template_contents[$container] .= $html . "\n"; 625 $this->template_contents[$container] = ($this->template_contents[$container]??'') . $html . "\n";
626 } 626 }
627 627
628 /** 628 /**
629 * Returns list of loaded plugins names 629 * Returns list of loaded plugins names
630 * 630 *
652 * @return array 652 * @return array
653 */ 653 */
654 protected function template_container_hook($attrib) 654 protected function template_container_hook($attrib)
655 { 655 {
656 $container = $attrib['name']; 656 $container = $attrib['name'];
657 return array('content' => ($attrib['content']??'') . $this->template_contents[$container]); 657 return array('content' => ($attrib['content']??'') . ($this->template_contents[$container]??''));
658 } 658 }
659 659
660 /** 660 /**
661 * Make the given file name link into the plugins directory 661 * Make the given file name link into the plugins directory
662 * 662 *