src/Intraface/modules/debtor/Controller/Send.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 139-142 (lines=4) @@
                                 | 
                            
                                                            
                                    | 136 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 137 | 
                                     | 
                                     | 
                                
                                                            
                                    | 138 | 
                                     | 
                                            // tilknyt fil  | 
                                
                                                            
                                    | 139 | 
                                     | 
                                            if (!$email->attachFile($file_id, $filehandler->get('file_name'))) { | 
                                
                                                            
                                    | 140 | 
                                     | 
                                                echo $email->error->view();  | 
                                
                                                            
                                    | 141 | 
                                     | 
                                                throw new Exception('Filen kunne ikke vedhæftes'); | 
                                
                                                            
                                    | 142 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 143 | 
                                     | 
                                     | 
                                
                                                            
                                    | 144 | 
                                     | 
                                            switch ($this->query('send')) { | 
                                
                                                            
                                    | 145 | 
                                     | 
                                                case 'email':  | 
                                
                                                                        
                 
                                                            
                    
src/Intraface/modules/debtor/Controller/Show.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 166-169 (lines=4) @@
                                 | 
                            
                                                            
                                    | 163 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 164 | 
                                     | 
                                     | 
                                
                                                            
                                    | 165 | 
                                     | 
                                                // tilknyt fil  | 
                                
                                                            
                                    | 166 | 
                                     | 
                                                if (!$email->attachFile($file_id, $filehandler->get('file_name'))) { | 
                                
                                                            
                                    | 167 | 
                                     | 
                                                    echo $email->error->view();  | 
                                
                                                            
                                    | 168 | 
                                     | 
                                                    throw new Exception('Filen kunne ikke vedhæftes'); | 
                                
                                                            
                                    | 169 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 170 | 
                                     | 
                                     | 
                                
                                                            
                                    | 171 | 
                                     | 
                                                $redirect = Intraface_Redirect::factory($this->getKernel(), 'go');  | 
                                
                                                            
                                    | 172 | 
                                     | 
                                                $shared_email = $this->getKernel()->useModule('email'); |