Created
December 23, 2009 16:19
-
-
Save robzienert/262615 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Prpl_Controller_Action_Helper_Url extends Zend_Controller_Action_Helper_Url | |
{ | |
public function url($urlOptions = array(), $name = null, $reset = false, $encode = true) | |
{ | |
if (!isset($urlOptions['locale'])) { | |
$urlOptions['locale'] = Zend_Registry::get('Zend_Translate')->getLocale(); | |
} | |
return parent::url($urlOptions, $name, $reset, $encode); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment