Merge pull request #315 from circuitbomb/small_fixes

Small fixes
This commit is contained in:
daeks
2013-04-16 01:08:47 -07:00
3 changed files with 5 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
}
if(!defined('BASE_PATH')) {
define('BASE_PATH', rtrim(str_replace("common.php", "", $_SERVER['SCRIPT_FILENAME']),"/"));
define('BASE_PATH', rtrim(str_replace("index.php", "", $_SERVER['SCRIPT_FILENAME']),"/"));
}
if(!defined('COMPONENTS')) {

View File

@@ -190,7 +190,9 @@
function (data) {
// console.log('complete unregistering');
// console.log(data);
codiad.jsend.parse(data);
if(data !== '') {
codiad.jsend.parse(data);
}
});
this.currentFilename = null;

View File

@@ -63,7 +63,7 @@
}else{
$filename = explode("/",$_GET['path']);
$filename = array_pop($filename);
$download_file = WORKSPACE . $_GET['path'];
$download_file = WORKSPACE . '/' . $_GET['path'];
}
header('Content-Description: File Transfer');