mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
- Fixed typos
- application/controllers/Cis/Pub.php bild method refactored - Replaced AkteModel with AkteLib where possible - application/core/FHC_Controller->outputFile added new features + improvements - Added new public methods outputImageByContent and outputImageByFile to application/core/FHC_Controller - Added new private method _outputImage to application/core/FHC_Controller - AkteLib fixes
This commit is contained in:
@@ -217,7 +217,6 @@ class ProfilUpdate extends Auth_Controller
|
||||
|
||||
public function show($dms_id)
|
||||
{
|
||||
|
||||
$profil_update = $this->ProfilUpdateModel->loadWhere(['attachment_id' => $dms_id]);
|
||||
$profil_update = hasData($profil_update) ? getData($profil_update)[0] : null;
|
||||
|
||||
@@ -239,13 +238,10 @@ class ProfilUpdate extends Auth_Controller
|
||||
|
||||
// Download file
|
||||
$this->outputFile(getData($download));
|
||||
|
||||
|
||||
} else {
|
||||
show_error($this->p->t('profilUpdate', 'profilUpdate_permission_error'));
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
show_error($this->p->t('profilUpdate', 'profilUpdate_dms_error'));
|
||||
return;
|
||||
@@ -299,7 +295,7 @@ class ProfilUpdate extends Auth_Controller
|
||||
getData($uploadDataResult)['file_name'],
|
||||
getData($uploadDataResult)['file_type'],
|
||||
fopen(getData($uploadDataResult)['full_path'], 'r'),
|
||||
'profil_aenderung'
|
||||
'profil_aenderung',
|
||||
null, // dokument_kurzbz
|
||||
null, // beschreibung
|
||||
false, // cis_suche
|
||||
|
||||
Reference in New Issue
Block a user