Fixes for live environment and updates to admin/service/update

This commit is contained in:
Deon George
2011-07-22 11:04:20 +10:00
parent 27cdab1fe4
commit c8c4c5176d
41 changed files with 2457 additions and 82 deletions

View File

@@ -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);

View File

@@ -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();
}
}
?>

View File

@@ -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'));
}
}
?>