Skip to content

Commit 03f11e5

Browse files
committed
6842 Refactor to reuse variable
1 parent 75c6c17 commit 03f11e5

File tree

1 file changed

+1
-1
lines changed
  • src/app/code/community/IntegerNet/Solr/Model/Resource

1 file changed

+1
-1
lines changed

src/app/code/community/IntegerNet/Solr/Model/Resource/Db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function disconnectMysql()
2727
}
2828

2929
/** @var Zend_Db_Adapter_Abstract $connection */
30-
foreach (Mage::getSingleton('core/resource')->getConnections() as $name => $connection) {
30+
foreach ($coreResource->getConnections() as $name => $connection) {
3131
if ($connection instanceof Zend_Db_Adapter_Abstract) {
3232
if ($this->isTransactionOpen($connection)) {
3333
continue;

0 commit comments

Comments
 (0)