Skip to content

Commit

Permalink
MAGETWO-69772: Remove wrong '_setup' replace when getting DB connecti…
Browse files Browse the repository at this point in the history
…on (2) #9726
  • Loading branch information
Oleksii Korshenko authored Jun 29, 2017
2 parents b1312ef + fc3b508 commit 5c516ad
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ public function getConnectionName($resourceName)
{
$this->initConnections();
$connectionName = \Magento\Framework\App\ResourceConnection::DEFAULT_CONNECTION;

$resourceName = preg_replace("/_setup$/", '', $resourceName);


if (!isset($this->_connectionNames[$resourceName])) {
$resourcesConfig = $this->get();
$pointerResourceName = $resourceName;
Expand Down

0 comments on commit 5c516ad

Please sign in to comment.