diff options
| author | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-09-29 22:01:36 +0300 |
|---|---|---|
| committer | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-09-29 22:01:36 +0300 |
| commit | 6aabab4b715ff8ac00cc667e9d0a40c9868410d8 (patch) | |
| tree | 85766ce290f3a89b1039969ce31bc47138d76594 /modules/gallery/helpers/gallery.php | |
| parent | 61e55becf46ce899632bff7ce26a7208094618f0 (diff) | |
| parent | ef8751468b998baddbc6d5827a392ed6e12e5548 (diff) | |
Merge remote branch 'gallery3/master'
Conflicts:
themes/admin_wind/css/screen.css
themes/wind/css/screen.css
Diffstat (limited to 'modules/gallery/helpers/gallery.php')
| -rw-r--r-- | modules/gallery/helpers/gallery.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php index ca8c92c9..3cf0eacd 100644 --- a/modules/gallery/helpers/gallery.php +++ b/modules/gallery/helpers/gallery.php @@ -140,4 +140,17 @@ class gallery_Core { return $file_name; } + /** + * Set the PATH environment variable to the paths specified. + * @param array Array of paths. Each array entry can contain a colon separated list of paths. + */ + static function set_path_env($paths) { + $path_env = array(); + foreach ($paths as $path) { + if ($path) { + array_push($path_env, $path); + } + } + putenv("PATH=" . implode(":", $path_env)); + } }
\ No newline at end of file |
