Skip to content

Commit 88dcccb

Browse files
committed
Use the right config path
1 parent 4793c6b commit 88dcccb

File tree

1 file changed

+3
-3
lines changed
  • app/code/community/Hackathon/AsyncIndex/Model

1 file changed

+3
-3
lines changed

app/code/community/Hackathon/AsyncIndex/Model/Manager.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function executePartialIndex( Mage_Index_Model_Process $process )
1919
/** @var $resourceModel Mage_Index_Model_Resource_Process */
2020
$resourceModel = Mage::getResourceSingleton('index/process');
2121

22-
if (Mage::getStoreConfigFlag('system/asyncindex/use_transations')) {
22+
if (Mage::getStoreConfigFlag('system/asyncindex/use_transactions')) {
2323
$resourceModel->beginTransaction();
2424
}
2525

@@ -39,13 +39,13 @@ public function executePartialIndex( Mage_Index_Model_Process $process )
3939
if ( count(Mage::getResourceSingleton('index/event')->getUnprocessedEvents($process)) === 0 ) {
4040
$process->changeStatus($pendingMode);
4141
}
42-
if (Mage::getStoreConfigFlag('system/asyncindex/use_transations')) {
42+
if (Mage::getStoreConfigFlag('system/asyncindex/use_transactions')) {
4343
$resourceModel->commit();
4444
}
4545
}
4646
catch (Exception $e)
4747
{
48-
if (Mage::getStoreConfigFlag('system/asyncindex/use_transations')) {
48+
if (Mage::getStoreConfigFlag('system/asyncindex/use_transactions')) {
4949
$resourceModel->rollBack();
5050
}
5151
throw $e;

0 commit comments

Comments
 (0)