From 1104ea8fea5098ff0ef5e6388d5fdf353784f679 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 17 Dec 2011 23:18:18 +0100 Subject: use perl from PATH and copy markdown.pl to scripts/ Signed-off-by: Florian Pritz --- application/controllers/file.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application/controllers') 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'); -- cgit v1.2.3-24-g4f1b