From b4ba9e2f84637d526d764318bce910c64129635c Mon Sep 17 00:00:00 2001 From: Corby Krick Date: Sat, 23 Feb 2013 18:40:06 -0600 Subject: [PATCH] Fixing a couple typos. --- application/controllers/lotw.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/lotw.php b/application/controllers/lotw.php index ebf2d719..6a3130cd 100644 --- a/application/controllers/lotw.php +++ b/application/controllers/lotw.php @@ -14,7 +14,7 @@ class Lotw extends CI_Controller { private function loadFromFile($filepath) { - ini_set('memory_limit', '-1'); + ini_set('memory_limit', '-1'); set_time_limit(0); $this->load->library('adif_parser'); @@ -68,7 +68,7 @@ class Lotw extends CI_Controller { $table .= ""; - unlink('./uploads/'.$data['upload_data']['file_name']); + unlink($filepath); $data['lotw_table'] = $table; @@ -130,7 +130,7 @@ class Lotw extends CI_Controller { file_put_contents($file, file_get_contents($lotw_url)); ini_set('memory_limit', '-1'); - loadFromFile($file); + $this->loadFromFile($file); } else { @@ -147,7 +147,7 @@ class Lotw extends CI_Controller { { $data = array('upload_data' => $this->upload->data()); - loadFromFile('./uploads/'.$data['upload_data']['file_name']); + $this->loadFromFile('./uploads/'.$data['upload_data']['file_name']); } } } // end function