Rename generic export.php to less generic exportxls.php, fix XLS export.
authorAndreas Schiermeier <andreas@schiermeier.name>
Mon, 30 Dec 2013 19:51:27 +0000 (20:51 +0100)
committerAndreas Schiermeier <andreas@schiermeier.name>
Mon, 30 Dec 2013 19:51:27 +0000 (20:51 +0100)
include/xlsexport.php
index.php

index bc7e305..1c247c6 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 
-function action_export() {
+function action_export_payments() {
        global $EARNING_TYPES, $EXPENSE_TYPES;
 
-    error_reporting(error_reporting() & ~E_DEPRECATED);
+    error_reporting(error_reporting() & ~E_DEPRECATED & ~E_STRICT);
        require_once 'vendor/autoload.php';
 
        // Creating a workbook
index c032593..b901e38 100644 (file)
--- a/index.php
+++ b/index.php
@@ -19,7 +19,7 @@ require_once('include/expenses.php');
 require_once('include/members.php');
 require_once('include/payments.php');
 require_once('include/dtaus.php');
-require_once('include/export.php');
+require_once('include/xlsexport.php');
 
 
 try {
@@ -54,7 +54,7 @@ try {
         case 'fees'           : action_fees();            break;
         case 'dtaus'          : action_dtaus();           break;
         case 'finances'       : action_finances();        break;
-        case 'export'         : action_export();          break;
+        case 'export'         : action_export_payments(); break;
         default: action_404();
     }