aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_events_test.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-24 12:55:41 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-24 12:56:39 -0500
commit4b761f65758c40db4851983fa3a08d354da3323d (patch)
tree8bc46941ba86b83d190dcb4648f275138215ed85 /tests/template/template_events_test.php
parentbfbc7aa74250ea5e9e39efc63caf7cfdb9407e14 (diff)
downloadforums-4b761f65758c40db4851983fa3a08d354da3323d.tar
forums-4b761f65758c40db4851983fa3a08d354da3323d.tar.gz
forums-4b761f65758c40db4851983fa3a08d354da3323d.tar.bz2
forums-4b761f65758c40db4851983fa3a08d354da3323d.tar.xz
forums-4b761f65758c40db4851983fa3a08d354da3323d.zip
[ticket/11628] Remove third parameter ($names) from set_custom_style
This was basically duplicating functionality. $names would be used if not empty, else array($name) would be used. Merged functionality into the first argument PHPBB3-11628
Diffstat (limited to 'tests/template/template_events_test.php')
-rw-r--r--tests/template/template_events_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template/template_events_test.php b/tests/template/template_events_test.php
index 7de3ebbfae..1b2ab38e2b 100644
--- a/tests/template/template_events_test.php
+++ b/tests/template/template_events_test.php
@@ -107,6 +107,6 @@ Zeta test event in all',
dirname(__FILE__) . "/datasets/$dataset/"
);
$this->template = new phpbb_template_twig($phpbb_root_path, $phpEx, $config, $user, new phpbb_template_context, $this->extension_manager);
- $this->template->set_custom_style('silver', array($this->template_path), $style_names, '');
+ $this->template->set_custom_style(((!empty($style_names)) ? $style_names : 'silver'), array($this->template_path), '');
}
}