Permalink
Browse files

Update data/generator/sfPropelModule/admin15/template/lib/helper.php

Fixed module generator Helper template
  • Loading branch information...
1 parent ce6aa33 commit 7154b97fdc4baa608e8366cf18a59d0a462efa1a @e1himself committed Jan 25, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 data/generator/sfPropelModule/admin15/template/lib/helper.php
@@ -26,7 +26,7 @@ public function linkToMoveUp($object, $params)
$params['action'] = 'moveUp';
}
- return '<li class="sf_admin_action_moveup">'.link_to(__($params['label'], array(), 'sf_admin'), '<?php echo $this->params['route_prefix'] ?>/'.$params['action'].'?<?php echo $this->getPrimaryKeyUrlParams('$object', true); ?>).'</li>';
+ return '<li class="sf_admin_action_moveup">'.link_to(__($params['label'], array(), 'sf_admin'), '<?php echo $this->params['moduleName'] ?>/'.$params['action'].'?<?php echo $this->getPrimaryKeyUrlParams('$object', true); ?>).'</li>';
}
public function linkToMoveDown($object, $params)
@@ -41,7 +41,7 @@ public function linkToMoveDown($object, $params)
$params['action'] = 'moveDown';
}
- return '<li class="sf_admin_action_movedown">'.link_to(__($params['label'], array(), 'sf_admin'), '<?php echo $this->params['route_prefix'] ?>/'.$params['action'].'?<?php echo $this->getPrimaryKeyUrlParams('$object', true); ?>).'</li>';
+ return '<li class="sf_admin_action_movedown">'.link_to(__($params['label'], array(), 'sf_admin'), '<?php echo $this->params['moduleName'] ?>/'.$params['action'].'?<?php echo $this->getPrimaryKeyUrlParams('$object', true); ?>).'</li>';
}
}

0 comments on commit 7154b97

Please sign in to comment.