Changed excel export to use vendor/autoload.php
authorPascal Hofmann <mail@pascalhofmann.de>
Sun, 3 Nov 2013 18:21:10 +0000 (19:21 +0100)
committerPascal Hofmann <mail@pascalhofmann.de>
Sun, 3 Nov 2013 18:21:10 +0000 (19:21 +0100)
include/export.php

index 59b4964..bc7e305 100644 (file)
@@ -3,9 +3,8 @@
 function action_export() {
        global $EARNING_TYPES, $EXPENSE_TYPES;
 
-       ini_set('include_path', ini_get('include_path') . ':pear/');
-
-       require_once 'Spreadsheet/Excel/Writer.php';
+    error_reporting(error_reporting() & ~E_DEPRECATED);
+       require_once 'vendor/autoload.php';
 
        // Creating a workbook
        $workbook = new Spreadsheet_Excel_Writer();
@@ -63,7 +62,7 @@ function action_export() {
        $content = ob_get_contents();
        ob_end_clean();
        echo $content;
-       die();
+       exit();
 }