Commit 5cd8f995 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Changement de chemin pour les logos

parent d1814460
Loading
Loading
Loading
Loading
+2 −2
Changes for module/Application/src/Application/Controller/EcoleDoctoraleController.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ namespace Application\Controller;

use Application\Entity\Db\EcoleDoctorale;
use Application\Entity\Db\Role;
use Application\Entity\Db\Structure;
use Application\Entity\Db\StructureConcreteInterface;
use Application\Form\EcoleDoctoraleForm;
use Application\Service\EcoleDoctorale\EcoleDoctoraleServiceAwareTrait;
@@ -285,8 +286,7 @@ class EcoleDoctoraleController extends AbstractController
    static public function getLogoFilename(EcoleDoctorale $ecole, $fullpath=true)
    {
        $chemin = "";
//        if ($fullpath) $chemin .= APPLICATION_DIR;
        if ($fullpath) $chemin .= "/var/sygal-files";
        if ($fullpath) $chemin .= Structure::PATH;
        $chemin .= "/ressources/Logos/ED/".$ecole->getSourceCode()."-".$ecole->getSigle().".png";
        return $chemin;
    }
+2 −2
Changes for module/Application/src/Application/Controller/EtablissementController.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ namespace Application\Controller;
use Application\Entity\Db\Etablissement;
use Application\Entity\Db\Role;
use Application\Entity\Db\SourceInterface;
use Application\Entity\Db\Structure;
use Application\Entity\Db\StructureConcreteInterface;
use Application\Form\EtablissementForm;
use Application\Service\Etablissement\EtablissementServiceAwareTrait;
@@ -284,8 +285,7 @@ class EtablissementController extends AbstractController
    static public function getLogoFilename(Etablissement $etablissement, $fullpath=true)
    {
        $chemin = "";
//        if ($fullpath) $chemin .= APPLICATION_DIR;
        if ($fullpath) $chemin .= "/var/sygal-files";
        if ($fullpath) $chemin .= Structure::PATH;
        if ($etablissement->getCode()) $chemin .= "/ressources/Logos/Etab/".$etablissement->getCode().".png";
        else $chemin .= "/ressources/Logos/Etab/". uniqid().".png";
        return $chemin;
+6 −2
Changes for module/Application/src/Application/Controller/TheseController.php: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ use Application\Entity\Db\MetadonneeThese;
use Application\Entity\Db\NatureFichier;
use Application\Entity\Db\RdvBu;
use Application\Entity\Db\Role;
use Application\Entity\Db\Structure;
use Application\Entity\Db\These;
use Application\Entity\Db\TypeValidation;
use Application\Entity\Db\Variable;
@@ -1432,6 +1433,9 @@ class TheseController extends AbstractController

    }

    /**
     * @throws \MpdfException
     */
    public function fusionAction()
    {

@@ -1512,8 +1516,8 @@ class TheseController extends AbstractController
        //unlink pour effacer la couv temp
        //unlink($filename);

        $merged->Output("/var/sygal-files/merged.pdf", 'D');
//        $merged->Output("/var/sygal-files/merged.pdf", 'D');
        $merged->Output(Structure::PATH. "merged.pdf", 'D');

    }

}
 No newline at end of file
+2 −2
Changes for module/Application/src/Application/Controller/UniteRechercheController.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
namespace Application\Controller;

use Application\Entity\Db\Role;
use Application\Entity\Db\Structure;
use Application\Entity\Db\StructureConcreteInterface;
use Application\Entity\Db\UniteRecherche;
use Application\Form\UniteRechercheForm;
@@ -302,8 +303,7 @@ class UniteRechercheController extends AbstractController
    static public function getLogoFilename(UniteRecherche $unite, $fullpath=true)
    {
        $chemin = "";
//        if ($fullpath) $chemin .= APPLICATION_DIR;
        if ($fullpath) $chemin .= "/var/sygal-files";
        if ($fullpath) $chemin .= Structure::PATH;
        $chemin .= "/ressources/Logos/UR/".$unite->getSourceCode()."-".$unite->getSigle().".png";
        return $chemin;
    }
+1 −1
Changes for module/Application/src/Application/Entity/Db/EcoleDoctorale.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ class EcoleDoctorale implements StructureConcreteInterface, HistoriqueAwareInter
            return $image;
        }
        //        return file_get_contents(APPLICATION_DIR . $this->getCheminLogo()) ?: null;
        return file_get_contents( "/var/sygal-files/" . $this->getCheminLogo()) ?: null;
        return file_get_contents( Structure::PATH . $this->getCheminLogo()) ?: null;
    }

    /**
Loading