Skip to content

Commit 0efd27d

Browse files
committed
Fix generated notification’s get_url usage of the route method
1 parent d6a3e0c commit 0efd27d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎skeleton/notification/type/sample.php.twig‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ class sample extends \phpbb\notification\type\base
129129
*/
130130
public function get_url()
131131
{
132-
return $this->helper->route('{{ EXTENSION.vendor_name }}_{{ EXTENSION.extension_name }}_controller', $this->get_data('{{ EXTENSION.extension_name|lower }}_sample_name'));
132+
return $this->helper->route('{{ EXTENSION.vendor_name }}_{{ EXTENSION.extension_name }}_controller', [
133+
'name' => $this->get_data('{{ EXTENSION.extension_name|lower }}_sample_name'),
134+
]);
133135
}
134136
135137
/**

0 commit comments

Comments
 (0)