Skip to content

Commit

Permalink
Ajout d'une précaution pour le cas exec() interdit.
Browse files Browse the repository at this point in the history
  • Loading branch information
crob27 committed May 22, 2012
1 parent 6b2bea4 commit 2c1d803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/header_template.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2c1d803

Please sign in to comment.