File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,13 @@ class plugins_gmap_admin extends plugins_gmap_db {
72
72
$ content ,
73
73
$ address ;
74
74
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 ;
80
82
$ this ->data = new backend_model_data ($ this );
81
83
$ this ->message = new component_core_message ($ this ->template );
82
84
$ this ->plugins = new backend_controller_plugins ();
Original file line number Diff line number Diff line change 27
27
</authors >
28
28
<release >
29
29
<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 >
32
32
<phase >Stable</phase >
33
33
</release >
34
34
<support >
You can’t perform that action at this time.
0 commit comments