diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
index 017667c..7c86b1a 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
@@ -122,8 +122,7 @@ protected function checkEncoding() {
$this->pass(t('Database is encoded in UTF-8'));
}
else {
- $base_url = str_replace('core/install.php', 'core/', \Drupal::request()->getBaseUrl());
- $this->fail(t('The %driver database must use %encoding encoding to work with Drupal. Recreate the database with %encoding encoding. See INSTALL.pgsql.txt for more details.', array(
+ $this->fail(t('The %driver database must use %encoding encoding to work with Drupal. Recreate the database with %encoding encoding. See INSTALL.pgsql.txt for more details.', array(
'%encoding' => 'UTF8',
'%driver' => $this->name(),
)));