Permalink
Browse files

Fixed incorrect urls in cron job run.

  • Loading branch information...
1 parent 46bb44e commit 80d25113b93c2f2b4766acc4a7c740e441f7e7d3 @balupton balupton committed Nov 10, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Bal/Bootstrap.php
@@ -626,7 +626,11 @@ protected function _initScriptCron ( ) {
$this->bootstrap('DoctrineListeners');
$this->bootstrap('frontController');
$FrontController = $this->getResource('frontController');
- $FrontController->setRequest(new Zend_Controller_Request_Http());
+ if ( $FrontController->getRequest() === null ) {
+ $Request = new Zend_Controller_Request_Http();
+ $FrontController->setRequest($Request);
+ }
+ $FrontController->setBaseUrl(BASE_URL); // must be done after the request creation
# Return true
return true;

0 comments on commit 80d2511

Please sign in to comment.