Skip to content

Commit 8aa2522

Browse files
committed
Merge branch 'master' into dev/4.0
2 parents 21eda61 + b679680 commit 8aa2522

3 files changed

Lines changed: 921 additions & 506 deletions

File tree

controller/wizard.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ public function bbcode_wizard(string $mode): Response
8080

8181
if ($mode === 'bbvideo')
8282
{
83+
$sites = $this->get_bbvideo_sites();
8384
$this->template->assign_vars([
84-
'ABBC3_BBVIDEO_SITES' => $this->get_bbvideo_sites(),
85-
'ABBC3_BBVIDEO_DEFAULT' => self::BBVIDEO_DEFAULT,
85+
'ABBC3_BBVIDEO_SITES' => $sites,
86+
'ABBC3_BBVIDEO_DEFAULT' => array_key_exists(self::BBVIDEO_DEFAULT, $sites) ? self::BBVIDEO_DEFAULT : key($sites),
8687
]);
8788
}
8889

ext.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class ext extends base
2323
public const PHPBB_MIN_VERSION = '4.0.0-dev';
2424
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']];
2525
public const ABBC3_EXT_NAME = 'Advanced BBCodes 3.4';
26-
private const ICONS_PATH = 'images/abbc3/icons';
2726

2827
/**
2928
* {@inheritdoc}
@@ -54,8 +53,7 @@ public function enable_step($old_state): bool|string
5453
protected function create_icons_directory(): void
5554
{
5655
$filesystem = $this->container->get('filesystem');
57-
$root_path = $this->container->getParameter('core.root_path');
58-
$icons_path = $root_path . self::ICONS_PATH;
56+
$icons_path = $this->container->getParameter('core.root_path') . 'images/abbc3/icons';
5957

6058
try
6159
{

0 commit comments

Comments
 (0)