Merge pull request #258 from andryyy/patch-2

Update init.php
This commit is contained in:
Andrew Dolgov 2013-07-10 09:33:39 -07:00
commit 32732aba26

View file

@ -24,6 +24,8 @@ class Updater extends Plugin {
// __FILE__ is in plugins/updater so we need to go one level up
$work_dir = dirname(dirname(dirname(__FILE__)));
$parent_dir = dirname($work_dir);
// Set PATH to run "which"
putenv('PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"');
$log = array();
if (!is_array($params)) $params = array();