Issues (95)

acp/abbc3_module.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 *
4
 * Advanced BBCode Box
5
 *
6
 * @copyright (c) 2020, 2023 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\abbc3\acp;
12
13
class abbc3_module
14
{
15
	/** @var string */
16
	public $page_title;
17
18
	/** @var string */
19
	public $tpl_name;
20
21
	/** @var string */
22
	public $u_action;
23
24
	/**
25
	 * Main ACP module
26
	 * @throws \Exception
27
	 */
28
	public function main()
29
	{
30
		global $phpbb_container;
31
32
		$this->tpl_name = 'acp_abbc3_settings';
33
		$this->page_title = 'ACP_ABBC3_SETTINGS';
34
35
		try
36
		{
37
			$phpbb_container->get('vse.abbc3.acp_controller')
38
				->set_u_action($this->u_action)
39
				->handle();
40
		}
41
		catch (\RuntimeException $e)
42
		{
43
			trigger_error($e->getMessage() . adm_back_link($this->u_action), $e->getCode());
0 ignored issues
show
The function adm_back_link was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

43
			trigger_error($e->getMessage() . /** @scrutinizer ignore-call */ adm_back_link($this->u_action), $e->getCode());
Loading history...
44
		}
45
	}
46
}
47