Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed incorrect urls in cron job run.

  • Loading branch information...
commit 80d25113b93c2f2b4766acc4a7c740e441f7e7d3 1 parent 46bb44e
@balupton balupton authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Bal/Bootstrap.php
View
6 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;
Please sign in to comment.
Something went wrong with that request. Please try again.