get('PMA_VERSION_GIT')) {
$response = PMA_Response::getInstance();
$response->isSuccess(false);
return;
}
// load revision data from repo
$GLOBALS['PMA_Config']->checkGitRevision();
// if using a remote commit fast-forwarded, link to Github
$commit_hash = substr(
$GLOBALS['PMA_Config']->get('PMA_VERSION_GIT_COMMITHASH'),
0,
7
);
$commit_hash = '' . $commit_hash . '';
if ($GLOBALS['PMA_Config']->get('PMA_VERSION_GIT_ISREMOTECOMMIT')) {
$commit_hash = '' . $commit_hash . '';
}
$branch = $GLOBALS['PMA_Config']->get('PMA_VERSION_GIT_BRANCH');
if ($GLOBALS['PMA_Config']->get('PMA_VERSION_GIT_ISREMOTEBRANCH')) {
$branch = '' . $branch . '';
}
if ($branch !== false) {
$branch = sprintf(__('%1$s from %2$s branch'), $commit_hash, $branch);
} else {
$branch = $commit_hash . ' (' . __('no branch') . ')';
}
$committer = $GLOBALS['PMA_Config']->get('PMA_VERSION_GIT_COMMITTER');
$author = $GLOBALS['PMA_Config']->get('PMA_VERSION_GIT_AUTHOR');
PMA_printListItem(
__('Git revision:') . ' '
. $branch . ',
'
. sprintf(
__('committed on %1$s by %2$s'),
PMA_Util::localisedDate(strtotime($committer['date'])),
''
. htmlspecialchars($committer['name']) . ''
)
. ($author != $committer
? ',
'
. sprintf(
__('authored on %1$s by %2$s'),
PMA_Util::localisedDate(strtotime($author['date'])),
''
. htmlspecialchars($author['name']) . ''
)
: ''),
'li_pma_version_git', null, null, null
);
}