Fixes for live environment and updates to admin/service/update
This commit is contained in:
@@ -37,10 +37,13 @@ class Controller_Admin_Export extends Controller_TemplateDefault {
|
||||
* This is the main call to export, providing a list of items to export and
|
||||
* setting up the page to call the export plugin when submitted.
|
||||
*/
|
||||
public function action_index($daysago=30) {
|
||||
public function action_index($daysago) {
|
||||
// @todo this should come from a file list
|
||||
$TBRexportplugins = array('quicken'=>'Export to Quicken');
|
||||
|
||||
if (! $daysago)
|
||||
$daysago = 30;
|
||||
|
||||
$payments = ORM::factory('payment')
|
||||
->export($daysago);
|
||||
|
||||
|
@@ -16,7 +16,7 @@ class Export {
|
||||
|
||||
public function __construct() {
|
||||
$this->plugin = preg_replace('/^'.get_parent_class($this).'_/','',get_class($this));
|
||||
$this->request = Request::current();
|
||||
$this->response = Response::factory();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@@ -190,9 +190,9 @@ class Export_Quicken extends Export {
|
||||
}
|
||||
|
||||
if (! empty($qo))
|
||||
$this->request->response = $qo->export();
|
||||
$this->response->body($qo->export());
|
||||
|
||||
$this->request->send_file(TRUE,'quicken-import.iif');
|
||||
$this->response->send_file(TRUE,'quicken-import.iif',array('mime_type'=>'text/plain'));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user