Merge pull request #244 from marc1706/ticket/240

[ticket/240] Specify correct namespace of bbcode class
This commit is contained in:
Marc Alexander
2014-04-12 16:02:13 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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
{ {

View File

@@ -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))