suppression fonctions inutiles et simplification

FossilOrigin-Name: 7c7598c1fc713bdd0a5dfdf5d8e68372a97a22f4c5f535eff57ba02bfee3ca4b
This commit is contained in:
engel 2022-03-25 09:08:46 +00:00
parent af7816d97f
commit 356ad4b6c8
2 changed files with 4 additions and 30 deletions

View File

@ -286,28 +286,6 @@ class Utils
); );
} }
/**
* @return nom de l'association
*/
public static function getNomAsso() {
return DB::getInstance()->first(
"SELECT value
FROM config
WHERE key = 'nom_asso'"
)->value;
}
/**
* @return adresse de l'association
*/
public static function getAdresseAsso() {
return DB::getInstance()->first(
"SELECT value
FROM config
WHERE key = 'adresse_asso'"
)->value;
}
/** /**
* @return liste des années fiscales * @return liste des années fiscales
*/ */

View File

@ -25,19 +25,15 @@ $totalPersonnes = cumulerVersements($versementsSelectionnes);
$nomAsso = $config->get('nom_asso'); $nomAsso = $config->get('nom_asso');
$adresseAsso = $config->get('adresse_asso'); $adresseAsso = $config->get('adresse_asso');
$signature = $signature =
(null !== $plugin->getConfig('signature')) (null !== $plugin->getConfig('signature')) ?
? Files::get($plugin->getConfig('signature'))->fullpath() :
\Garradin\Files\Files::get($plugin->getConfig('signature'))->fullpath()
:
""; "";
// logo // logo
$logo_file = Files::get(File::CONTEXT_CONFIG . '/logo.png'); $logo_file = Files::get(File::CONTEXT_CONFIG . '/logo.png');
$logoAsso = $logoAsso =
(null !== $logo_file) (null !== $logo_file) ?
? Files::get($logo_file->path)->fullpath() :
Files::get($logo_file->path)->fullpath()
:
""; "";
// articles du CGI // articles du CGI