Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ajout d'une précaution pour le cas exec() interdit.

  • Loading branch information...
commit 2c1d803b4af3d111b85d20077d01514319ff8b56 1 parent 6b2bea4
@crob27 crob27 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/header_template.inc
View
2  lib/header_template.inc
@@ -508,7 +508,7 @@ if (isset($titre_page)) {
if ($gepiGitCommit != null) {
$version_gepi .= ' '.substr($gepiGitCommit, 0, 6).' '.$gepiGitBranch;
try {
- exec('cd '.dirname(__FILE__).'; git log -1 --format=format:"%ct" '.$gepiGitCommit, $output);
+ @exec('cd '.dirname(__FILE__).'; git log -1 --format=format:"%ct" '.$gepiGitCommit, $output);
if (isset($output[0])) {
$date = new DateTime('@'.$output[0]);
$version_gepi .= ' '.$date->format('d/m/Y H:i');
Please sign in to comment.
Something went wrong with that request. Please try again.