summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-12-17 23:18:18 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-12-17 23:18:18 +0100
commit1104ea8fea5098ff0ef5e6388d5fdf353784f679 (patch)
tree6e247c3b1f29d07dc3385728143018b74bff8f67 /application/controllers
parentfa869698c592c9d7d0f33b64c8fba409ebf5d75f (diff)
use perl from PATH and copy markdown.pl to scripts/
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 470383504..de2ce314b 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -18,6 +18,9 @@ class File extends CI_Controller {
show_error($this->migration->error_string());
}
+ $old_path = getenv("PATH");
+ putenv("PATH=$old_path:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin");
+
mb_internal_encoding('UTF-8');
$this->load->helper(array('form', 'filebin'));
$this->load->model('file_mod');