mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 01:51:31 +02:00
[ticket/12841] prefix function name with phpbb_
PHPBB3-12841
This commit is contained in:
@@ -668,7 +668,7 @@ function validate_range($value_ary, &$error)
|
|||||||
* of the form: array('after' => 'config_name')
|
* of the form: array('after' => 'config_name')
|
||||||
* @return array The array of config display vars
|
* @return array The array of config display vars
|
||||||
*/
|
*/
|
||||||
function insert_config_array($display_vars, $add_config_vars, $where)
|
function phpbb_insert_config_array($display_vars, $add_config_vars, $where)
|
||||||
{
|
{
|
||||||
if (is_array($where) && array_key_exists(current($where), $display_vars))
|
if (is_array($where) && array_key_exists(current($where), $display_vars))
|
||||||
{
|
{
|
||||||
|
@@ -135,7 +135,7 @@ class phpbb_functions_insert_config_array_test extends phpbb_test_case
|
|||||||
public function test_insert_config_array($new_config, $position, $expected)
|
public function test_insert_config_array($new_config, $position, $expected)
|
||||||
{
|
{
|
||||||
$config_array = $this->config_display_vars();
|
$config_array = $this->config_display_vars();
|
||||||
$new_config_array = insert_config_array($config_array, $new_config, $position);
|
$new_config_array = phpbb_insert_config_array($config_array, $new_config, $position);
|
||||||
|
|
||||||
$this->assertSame($expected, $new_config_array);
|
$this->assertSame($expected, $new_config_array);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user