From 81ed2c6c03bace0966618ea8cec78ed2336e7920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 6 Sep 2017 22:01:20 -0300 Subject: Refactor git revision function to static function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- index.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8c36ea173e..b67f5402fa 100644 --- a/index.php +++ b/index.php @@ -8,6 +8,7 @@ use PhpMyAdmin\Charsets; use PhpMyAdmin\Core; +use PhpMyAdmin\Display\GitRevision; use PhpMyAdmin\LanguageManager; use PhpMyAdmin\Message; use PhpMyAdmin\RecentFavoriteTable; @@ -22,11 +23,6 @@ use PhpMyAdmin\Url; */ require_once 'libraries/common.inc.php'; -/** - * display Git revision if requested - */ -require_once 'libraries/display_git_revision.lib.php'; - /** * pass variables to child pages */ @@ -98,7 +94,7 @@ if ($response->isAjax() && ! empty($_REQUEST['recent_table'])) { if ($GLOBALS['PMA_Config']->isGitRevision()) { if (isset($_REQUEST['git_revision']) && $response->isAjax()) { - PMA_printGitRevision(); + GitRevision::print(); exit; } echo '
'; -- cgit v1.2.3