Skip to content

Commit e8af8f8

Browse files
committed
version 5.3 => 6.0
* fix constructor
1 parent d4ee6e6 commit e8af8f8

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

admin.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@ class plugins_gmap_admin extends plugins_gmap_db {
7272
$content,
7373
$address;
7474

75-
/**
76-
* plugins_gmap_admin constructor.
77-
*/
78-
public function __construct() {
79-
$this->template = new backend_model_template();
75+
/**
76+
* @param backend_model_template|null $t
77+
* @throws Exception
78+
*/
79+
public function __construct(?backend_model_template $t = null)
80+
{
81+
$this->template = $t instanceof backend_model_template ? $t : new backend_model_template;
8082
$this->data = new backend_model_data($this);
8183
$this->message = new component_core_message($this->template);
8284
$this->plugins = new backend_controller_plugins();

config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
</authors>
2828
<release>
2929
<date_create>21/01/2012</date_create>
30-
<date_update>04/08/2022</date_update>
31-
<version>5.3</version>
30+
<date_update>07/08/2023</date_update>
31+
<version>6.0</version>
3232
<phase>Stable</phase>
3333
</release>
3434
<support>

0 commit comments

Comments
 (0)