diff options
| author | polo <ordipolo@gmx.fr> | 2024-07-15 17:49:31 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2024-07-15 17:49:31 +0200 |
| commit | c4a3f80a6dccdff9b2abff6f159ef8fdd4382787 (patch) | |
| tree | 000a98fcff60aba9cd0784f181c0ac4a4056a2c4 /src/Latex.php | |
| parent | 14f68d7d93cd6e498a7d15cf5ce5b227ed0683a7 (diff) | |
| download | AppliGestionPHP-c4a3f80a6dccdff9b2abff6f159ef8fdd4382787.tar.gz AppliGestionPHP-c4a3f80a6dccdff9b2abff6f159ef8fdd4382787.tar.bz2 AppliGestionPHP-c4a3f80a6dccdff9b2abff6f159ef8fdd4382787.zip | |
déplacement dossier d'exécution, suppression de Config::checkPath, bugs
Diffstat (limited to 'src/Latex.php')
| -rw-r--r-- | src/Latex.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Latex.php b/src/Latex.php index 6f1219f..f7f18ea 100644 --- a/src/Latex.php +++ b/src/Latex.php | |||
| @@ -47,7 +47,7 @@ abstract class Latex | |||
| 47 | public function makeLatex() | 47 | public function makeLatex() |
| 48 | { | 48 | { |
| 49 | $data = $this->data; // tableau à inséré dans du code latex | 49 | $data = $this->data; // tableau à inséré dans du code latex |
| 50 | include('latex_templates/' . $this->type . '.php'); | 50 | include('src/latex_templates/' . $this->type . '.php'); |
| 51 | $this->latex = $latex; // buffer récupéré par ob_get_clean() | 51 | $this->latex = $latex; // buffer récupéré par ob_get_clean() |
| 52 | 52 | ||
| 53 | // QUESTION: | 53 | // QUESTION: |
| @@ -143,7 +143,7 @@ abstract class PrestaLatex extends Latex | |||
| 143 | // on obtient la variable $latex avec ob_get_clean() | 143 | // on obtient la variable $latex avec ob_get_clean() |
| 144 | // le include() ici, c'est du génie ou c'est moche ou les deux? | 144 | // le include() ici, c'est du génie ou c'est moche ou les deux? |
| 145 | // un nouveau fichier php est inséré à chaque itération | 145 | // un nouveau fichier php est inséré à chaque itération |
| 146 | include('latex_templates/' . $this->type . '.php'); | 146 | include('src/latex_templates/' . $this->type . '.php'); |
| 147 | 147 | ||
| 148 | // on retourne le buffer | 148 | // on retourne le buffer |
| 149 | // normallement le code PHP inséré avec include est nettoyé en quittant la fonction | 149 | // normallement le code PHP inséré avec include est nettoyé en quittant la fonction |
