summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayaram R Pai2014-08-20 16:19:43 +0530
committerJayaram R Pai2014-08-20 16:19:43 +0530
commitb0dffe5326819ec6a76e623727dd4e3ca47703e6 (patch)
treeb6466830632b9d47c04c8b8662d1c92f77d99017
parentd741b0c56bf4c277077b1e94b51c3a291c012861 (diff)
downloadjob_portal-b0dffe5326819ec6a76e623727dd4e3ca47703e6.tar.gz
job_portal-b0dffe5326819ec6a76e623727dd4e3ca47703e6.tar.bz2
job_portal-b0dffe5326819ec6a76e623727dd4e3ca47703e6.zip
fixed pdf's local filename in zip
-rwxr-xr-xjob_portal.module4
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);