static function activate() { gallery::set_path_env(array(getenv("PATH"), module::get_var("gallery", "extra_binary_paths"))); $exiv = exec('which exiv2'); if ($exiv == '') { # Proper warning } else { module::set_var("author", "exiv_path", $exiv); $out = array(); exec("{$exiv} -V", $out); $parts = split(' ', $out[0]); module::set_var("author", "exiv_version", $parts[1]); } }