From b1fe08fa9222df068fb471a69af65bc0fe46fe47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 2 Feb 2011 14:37:05 +0100 Subject: [PATCH] Add version check to vendor configuration. This is something what most Linux distributions will want to disable, so give it to place where this customisation should happen. --- libraries/config.default.php | 2 +- libraries/vendor_config.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/config.default.php b/libraries/config.default.php index c53abcd81..9fece7acd 100644 --- a/libraries/config.default.php +++ b/libraries/config.default.php @@ -499,7 +499,7 @@ $cfg['AjaxEnable'] = true; * * @global boolean $cfg['VersionCheck'] */ -$cfg['VersionCheck'] = true; +$cfg['VersionCheck'] = VERSION_CHECK_DEFAULT; /** * maximum number of db's displayed in left frame and database list diff --git a/libraries/vendor_config.php b/libraries/vendor_config.php index 5cea60964..41f7c233f 100644 --- a/libraries/vendor_config.php +++ b/libraries/vendor_config.php @@ -54,4 +54,9 @@ define('CUSTOM_HEADER_FILE', CONFIG_DIR . 'config.header.inc.php'); * Filename of custom footer file. */ define('CUSTOM_FOOTER_FILE', CONFIG_DIR . 'config.footer.inc.php'); + +/** + * Default value for check for version upgrades. + */ +define('VERSION_CHECK_DEFAULT', true); ?>