@@ -53,6 +53,9 @@ class listener implements EventSubscriberInterface
53
53
/** @var string */
54
54
protected $ root_path ;
55
55
56
+ /** @var string */
57
+ protected $ php_ext ;
58
+
56
59
/**
57
60
* Constructor
58
61
*
@@ -65,8 +68,9 @@ class listener implements EventSubscriberInterface
65
68
* @param user $user
66
69
* @param manager $phpbb_notifications Notifications manager object
67
70
* @param string $root_path
71
+ * @param string $php_ext
68
72
*/
69
- public function __construct (config $ config , controller_helper $ controller_helper , FastImageSize $ imagesize , form_helper $ form_helper , language $ language , template $ template , user $ user , manager $ phpbb_notifications , $ root_path )
73
+ public function __construct (config $ config , controller_helper $ controller_helper , FastImageSize $ imagesize , form_helper $ form_helper , language $ language , template $ template , user $ user , manager $ phpbb_notifications , $ root_path, $ php_ext )
70
74
{
71
75
$ this ->config = $ config ;
72
76
$ this ->controller_helper = $ controller_helper ;
@@ -77,6 +81,7 @@ public function __construct(config $config, controller_helper $controller_helper
77
81
$ this ->user = $ user ;
78
82
$ this ->phpbb_notifications = $ phpbb_notifications ;
79
83
$ this ->root_path = $ root_path ;
84
+ $ this ->php_ext = $ php_ext ;
80
85
}
81
86
82
87
public static function getSubscribedEvents ()
@@ -143,7 +148,7 @@ public function compatibility_notice()
143
148
public function pwa_manifest ()
144
149
{
145
150
$ this ->template ->assign_vars ([
146
- 'U_MANIFEST_URL ' => 'ext/phpbb/webpushnotifications/manifest.php ' ,
151
+ 'U_MANIFEST_URL ' => 'ext/phpbb/webpushnotifications/manifest. ' . $ this -> php_ext ,
147
152
'U_TOUCH_ICON ' => $ this ->config ['pwa_icon_small ' ] ? ext::PWA_ICON_DIR . '/ ' . $ this ->config ['pwa_icon_small ' ] : null ,
148
153
'SHORT_SITE_NAME ' => $ this ->config ['pwa_short_name ' ] ?: $ this ->trim_shortname ($ this ->config ['sitename ' ]),
149
154
]);
0 commit comments