summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-16 20:43:48 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-16 20:43:48 -0700
commit3e1743b21fd35b9d6d540e827292f1f4f006b531 (patch)
tree07a7b5fbd34c076fb2c2757eb65330cc51f150b3 /modules/gallery/helpers/gallery_installer.php
parent64dfccc4eddf204a80ce533bad69ac8c0c83c1bd (diff)
Add a module variable containing extra paths to search for binaries.
Fixes ticket #1384.
Diffstat (limited to 'modules/gallery/helpers/gallery_installer.php')
-rw-r--r--modules/gallery/helpers/gallery_installer.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 444d307b..83961d6b 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -307,8 +307,9 @@ class gallery_installer {
module::set_var("gallery", "email_line_length", 70);
module::set_var("gallery", "email_header_separator", serialize("\n"));
module::set_var("gallery", "show_user_profiles_to", "registered_users");
+ module::set_var("gallery", "extra_binary_paths", "/usr/local/bin:/opt/local/bin:/opt/bin");
- module::set_version("gallery", 39);
+ module::set_version("gallery", 40);
}
static function upgrade($version) {
@@ -631,6 +632,11 @@ class gallery_installer {
module::set_var("gallery", "show_user_profiles_to", "registered_users");
module::set_version("gallery", $version = 39);
}
+
+ if ($version == 39) {
+ module::set_var("gallery", "extra_binary_paths", "/usr/local/bin:/opt/local/bin:/opt/bin");
+ module::set_version("gallery", $version = 40);
+ }
}
static function uninstall() {