Skip to content

Commit

Permalink
Language level updates
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Jun 12, 2024
1 parent 19db3ef commit 3fd359b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion controller/wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class wizard
{
/** @var string The default BBvideo site */
const BBVIDEO_DEFAULT = 'youtube';
public const BBVIDEO_DEFAULT = 'youtube';

/** @var cache_driver */
protected $cache;
Expand Down
2 changes: 1 addition & 1 deletion core/bbcodes_display.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function display_custom_bbcodes($custom_tags, $row)

$icon_tag = strtolower(rtrim($row['bbcode_tag'], '='));

$custom_tags['BBCODE_IMG'] = isset($icons[$icon_tag]) ? $icons[$icon_tag] : '';
$custom_tags['BBCODE_IMG'] = $icons[$icon_tag] ?? '';
$custom_tags['S_CUSTOM_BBCODE_ALLOWED'] = empty($row['bbcode_group']) || $this->user_in_bbcode_group($row['bbcode_group']);

return $custom_tags;
Expand Down
2 changes: 1 addition & 1 deletion core/bbcodes_help.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function faq()

$this->template->assign_block_vars('faq_block.faq_row', [
'FAQ_QUESTION' => $title[0],
'FAQ_ANSWER' => $this->language->lang('ABBC3_FAQ_ANSWER', (isset($title[1]) ? $title[1] : $title[0]), $example['text'], $result),
'FAQ_ANSWER' => $this->language->lang('ABBC3_FAQ_ANSWER', ($title[1] ?? $title[0]), $example['text'], $result),
]);
}
}
Expand Down
10 changes: 5 additions & 5 deletions ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

class ext extends \phpbb\extension\base
{
const MOVE_UP = 'move_up';
const MOVE_DOWN = 'move_down';
const MOVE_DRAG = 'move_drag';
const PHPBB_MIN_VERSION = '3.2.2'; // Require 3.2.2 due to TextFormatter and BBCode changes
const ABBC3_BBCODE_FONTS = ['ABBC3_FONT_SAFE' => ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Georgia', 'Impact', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana']];
public const MOVE_UP = 'move_up';
public const MOVE_DOWN = 'move_down';
public const MOVE_DRAG = 'move_drag';
public const PHPBB_MIN_VERSION = '4.0.0-a1-dev';
public const ABBC3_BBCODE_FONTS = ['ABBC3_FONT_SAFE' => ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Georgia', 'Impact', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana']];

/**
* {@inheritdoc}
Expand Down

0 comments on commit 3fd359b

Please sign in to comment.