aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_install.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2012-09-01 17:06:59 +0200
committerNils Adermann <naderman@naderman.de>2012-09-01 17:06:59 +0200
commit4fde4abe5511d3d5c4ea423ecc40888b9565e580 (patch)
tree4869b286016cc8207d527d885407c849df780a7a /phpBB/includes/functions_install.php
parentd866624ea7cbc4ff8e5515f66dbb984cbd565414 (diff)
parent3bd19077dcd7f842e3b5fc50fcdcd7fa9299ad6b (diff)
downloadforums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.tar
forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.tar.gz
forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.tar.bz2
forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.tar.xz
forums-4fde4abe5511d3d5c4ea423ecc40888b9565e580.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [task/functional] Fixed DEBUG_TEST related issues [task/functional] Allow tests to bypass certain restrictions with DEBUG_TEST [task/functional] Added posting tests (reply and new topic)
Diffstat (limited to 'phpBB/includes/functions_install.php')
-rw-r--r--phpBB/includes/functions_install.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/functions_install.php b/phpBB/includes/functions_install.php
index 46541acd44..5ff97dc10d 100644
--- a/phpBB/includes/functions_install.php
+++ b/phpBB/includes/functions_install.php
@@ -522,10 +522,12 @@ function adjust_language_keys_callback($matches)
* @param string $dbms The name of the DBAL class to use
* @param array $load_extensions Array of additional extensions that should be loaded
* @param bool $debug If the debug constants should be enabled by default or not
+* @param bool $debug_test If the DEBUG_TEST constant should be added
+* NOTE: Only for use within the testing framework
*
* @return string The output to write to the file
*/
-function phpbb_create_config_file_data($data, $dbms, $load_extensions, $debug = false)
+function phpbb_create_config_file_data($data, $dbms, $load_extensions, $debug = false, $debug_test = false)
{
$load_extensions = implode(',', $load_extensions);
@@ -562,5 +564,10 @@ function phpbb_create_config_file_data($data, $dbms, $load_extensions, $debug =
$config_data .= "// @define('DEBUG_EXTRA', true);\n";
}
+ if ($debug_test)
+ {
+ $config_data .= "@define('DEBUG_TEST', true);\n";
+ }
+
return $config_data;
}