Skip to content

Commit 0daced0

Browse files
author
Nicholas K. Dionysopoulos
committed
~ Joomla! 3.9 backend Components menu item compatibility
1 parent a831a0a commit 0daced0

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

CHANGELOG

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
Akeeba Data Compliance 0.1.0
2-
================================================================================
3-
4-
* First release
5-
61
Akeeba Data Compliance 1.1.0
72
================================================================================
3+
+ Cookie consent plugin
4+
~ Joomla! 3.9 backend Components menu item compatibility
85

9-
* Cookie consent plugin
6+
Akeeba Data Compliance 0.1.0
7+
================================================================================
8+
* First release

build/templates/datacompliance.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<!-- Administrator back-end section -->
3636
<administration>
3737
<!-- Administration menu -->
38-
<menu view="cpanel">COM_DATACOMPLIANCE</menu>
38+
<menu>COM_DATACOMPLIANCE</menu>
3939

4040
<!-- Back-end files -->
4141
<files folder="backend">

component/backend/Dispatcher/Dispatcher.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@ class Dispatcher extends \FOF30\Dispatcher\Dispatcher
2020
/** @var string The name of the default view, in case none is specified */
2121
public $defaultView = 'ControlPanel';
2222

23-
public function onBeforeDispatch()
23+
public function __construct(Container $container, array $config)
24+
{
25+
parent::__construct($container, $config);
26+
27+
$this->viewNameAliases = [
28+
'cpanel' => 'ControlPanel',
29+
];
30+
}
31+
32+
public function onBeforeDispatch()
2433
{
2534
$this->onBeforeDispatchViewAliases();
2635

0 commit comments

Comments
 (0)