コード例 #1
0
 private function addLogoInAttachment(Codendi_Mail $mail)
 {
     $logo_retriever = new LogoRetriever();
     $cid_logo = '';
     $path_logo = $logo_retriever->getPath();
     if ($path_logo) {
         $id_attachment = 'logo';
         $mail->addInlineAttachment(file_get_contents($path_logo), $logo_retriever->getMimetype(), $id_attachment);
         $cid_logo = 'cid:' . $id_attachment;
     }
     return $cid_logo;
 }
コード例 #2
0
 public function itDoesNotFoundUnavailableLogo()
 {
     ForgeConfig::set('sys_themedefault', 'notfound');
     $logo_retriever = new LogoRetriever();
     $this->assertFalse($logo_retriever->getPath());
 }