SimpleExcel.php
authorEdward <edward@roojs.com>
Mon, 22 Jul 2013 05:36:50 +0000 (13:36 +0800)
committerEdward <edward@roojs.com>
Mon, 22 Jul 2013 05:36:50 +0000 (13:36 +0800)
SimpleExcel.php

index d06cb92..2d5730e 100644 (file)
@@ -289,7 +289,7 @@ class Pman_Core_SimpleExcel extends Pman
     }
      
     
-    function send($fn)
+    function send($fname)
     {
         if (!empty($this->workbook)) {
             $this->workbook->close();
@@ -299,7 +299,7 @@ class Pman_Core_SimpleExcel extends Pman
         require_once 'File/Convert.php';
         $fc=  new File_Convert($this->outfile2, "application/vnd.ms-excel");
         $fn = $fc->convert("application/vnd.ms-excel"); 
-        $fc->serve('attachment',$fn); // can fix IE Mess
+        $fc->serve('attachment',$fname); // can fix IE Mess
     }