Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 14351 | Rev 15028 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 14351 Rev 14989
Línea 963... Línea 963...
963
            $companyMapper = CompanyMapper::getInstance($this->adapter);
963
            $companyMapper = CompanyMapper::getInstance($this->adapter);
964
            $company = $companyMapper->fetchOne($currentCompany->id);
964
            $company = $companyMapper->fetchOne($currentCompany->id);
Línea 965... Línea 965...
965
 
965
 
Línea -... Línea 966...
-
 
966
            $target_path = $this->config['leaderslinked.fullpath.company'] . DIRECTORY_SEPARATOR . $company->uuid;
-
 
967
 
966
            $target_path = $this->config['leaderslinked.fullpath.company'] . DIRECTORY_SEPARATOR . $company->uuid;
968
            if( $company->header) {
-
 
969
                
-
 
970
                $filename = $target_path . DIRECTORY_SEPARATOR . $company->header;
-
 
971
                if(file_exists($filename)) {
-
 
972
                
-
 
973
                    $pdf->header =  $filename;
-
 
974
                } else {
-
 
975
                    $pdf->header =  '';
-
 
976
                }
-
 
977
            } else {
-
 
978
                $pdf->header =  '';
967
 
979
            }
-
 
980
            if( $company->footer ) {
-
 
981
                $filename = $target_path . DIRECTORY_SEPARATOR . $company->footer;
-
 
982
                if(file_exists($filename)) {
-
 
983
                    $pdf->footer =  $filename;
-
 
984
                } else {
-
 
985
                    $pdf->footer =  '';
-
 
986
                }
-
 
987
                
-
 
988
            } else {
-
 
989
                $pdf->footer =  '';
-
 
990
            }
968
            $pdf->header = $company->header ? $target_path . DIRECTORY_SEPARATOR . $company->header : '';
991
            
Línea 969... Línea 992...
969
            $pdf->footer = $company->footer ? $target_path . DIRECTORY_SEPARATOR . $company->footer : '';
992
 
Línea 970... Línea 993...
970
        }
993
        }