diff options
author | Jayaram R Pai | 2014-08-20 16:19:43 +0530 |
---|---|---|
committer | Jayaram R Pai | 2014-08-20 16:19:43 +0530 |
commit | b0dffe5326819ec6a76e623727dd4e3ca47703e6 (patch) | |
tree | b6466830632b9d47c04c8b8662d1c92f77d99017 | |
parent | d741b0c56bf4c277077b1e94b51c3a291c012861 (diff) | |
download | job_portal-b0dffe5326819ec6a76e623727dd4e3ca47703e6.tar.gz job_portal-b0dffe5326819ec6a76e623727dd4e3ca47703e6.tar.bz2 job_portal-b0dffe5326819ec6a76e623727dd4e3ca47703e6.zip |
fixed pdf's local filename in zip
-rwxr-xr-x | job_portal.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/job_portal.module b/job_portal.module index 20d6aa6..4fe3a9f 100755 --- a/job_portal.module +++ b/job_portal.module @@ -45,7 +45,7 @@ "access arguments" => array("manage download_application"), "type" => MENU_CALLBACK - ); + ); return $items; } @@ -292,7 +292,7 @@ FOSSEE Team $zipname = str_replace(' ','_',strtolower($job->project.'_'.$job->position.'.zip')); $zip = new ZipArchive; $zip->open($zipname, ZipArchive::CREATE); - $zip->addFile($files, str_replace('.','_',str_replace(' ','_',strtolower("/{$row->id} {$row->name}" ))) . ".pdf"); + $zip->addFile($files, str_replace('.','_',str_replace(' ','_',strtolower("{$row->id} {$row->name}" ))) . ".pdf"); $zip->close(); array_push($rows, $item); |