Skip to content

Commit 27205e9

Browse files
committed
Merge pull request #24 from Silarn/master
Fix for Magento 1.9.2.2 / SUPEE-6788
2 parents 65f60b8 + 9bed130 commit 27205e9

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ protected function _changeActions(Mage_Index_Block_Adminhtml_Process_Grid $grid)
5757
),
5858
array(
5959
'caption' => Mage::helper('index')->__('Schedule Reindex'),
60-
'url' => array('base' => 'asyncindex/asyncindex/index'),
60+
'url' => array('base' => 'adminhtml/asyncindex/index'),
6161
'params' => array('_current' => true, '_secure' => false),
6262
'field' => 'process'
6363
),
6464
array(
6565
'caption' => Mage::helper('index')->__('Schedule partial index'),
66-
'url' => array('base' => 'asyncindex/asyncindex/schedulePartial'),
66+
'url' => array('base' => 'adminhtml/asyncindex/schedulePartial'),
6767
'params' => array('_current' => true, '_secure' => false),
6868
'field' => 'process'
6969
),

app/code/community/Hackathon/AsyncIndex/controllers/AsyncindexController.php app/code/community/Hackathon/AsyncIndex/controllers/Adminhtml/AsyncindexController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class Hackathon_AsyncIndex_AsyncindexController extends Mage_Adminhtml_Controller_Action
3+
class Hackathon_AsyncIndex_Adminhtml_AsyncindexController extends Mage_Adminhtml_Controller_Action
44
{
55

66
/**

app/code/community/Hackathon/AsyncIndex/etc/config.xml

+5-6
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,18 @@
7373
<run>
7474
<model>hackathon_asyncindex/observer::runIndex</model>
7575
</run>
76-
7776
</hackathon_asyncindex_events_cron>
7877
</jobs>
7978
</crontab>
8079
<admin>
8180
<routers>
82-
<asyncindex>
81+
<adminhtml>
8382
<args>
84-
<module>Hackathon_AsyncIndex</module>
85-
<frontName>asyncindex</frontName>
83+
<modules>
84+
<Hackathon_AsyncIndex after="Mage_Adminhtml">Hackathon_AsyncIndex_Adminhtml</Hackathon_AsyncIndex>
85+
</modules>
8686
</args>
87-
<use>admin</use>
88-
</asyncindex>
87+
</adminhtml>
8988
</routers>
9089
</admin>
9190
<default>

app/design/adminhtml/default/default/template/hackathon/process_stats.phtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<td><?php echo $code; ?></td>
1313
<td><?php echo $count; ?></td>
1414
<td><form action="<?php
15-
echo $this->getUrl('asyncindex/asyncindex/index',
15+
echo $this->getUrl('adminhtml/asyncindex/index',
1616
array(
1717
'_current' => true,
1818
'_secure' => false,

0 commit comments

Comments
 (0)