[ticket/240] Specify correct namespace of bbcode class
B3P-240
This commit is contained in:
@@ -508,7 +508,7 @@ class poll extends module_base
|
|||||||
// Parse BBCode title
|
// Parse BBCode title
|
||||||
if ($data['bbcode_bitfield'])
|
if ($data['bbcode_bitfield'])
|
||||||
{
|
{
|
||||||
$poll_bbcode = new bbcode();
|
$poll_bbcode = new \bbcode();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -551,7 +551,7 @@ class poll extends module_base
|
|||||||
// Parse BBCode option text
|
// Parse BBCode option text
|
||||||
if ($data['bbcode_bitfield'])
|
if ($data['bbcode_bitfield'])
|
||||||
{
|
{
|
||||||
$poll_bbcode = new bbcode();
|
$poll_bbcode = new \bbcode();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ class phpbb_functional_portal_vote_poll_test extends \board3\portal\tests\testfr
|
|||||||
public function test_with_poll()
|
public function test_with_poll()
|
||||||
{
|
{
|
||||||
// Create topic with poll
|
// Create topic with poll
|
||||||
$data = $this->create_topic(2, 'Portal-poll', 'This is a poll for the portal', array(
|
$data = $this->create_topic(2, 'Portal-poll', 'This is a [b]poll[/b] for the portal', array(
|
||||||
'poll_title' => 'Is this a poll?',
|
'poll_title' => 'Is this a poll?',
|
||||||
'poll_option_text' => "Yes\nNo\nMaybe",
|
'poll_option_text' => "Yes\nN[b]o[/b]\nMaybe",
|
||||||
));
|
));
|
||||||
|
|
||||||
if (isset($data))
|
if (isset($data))
|
||||||
|
|||||||
Reference in New Issue
Block a user