Skip to content

Commit 755b2f1

Browse files
allow trans calling from other classes
in the same module like autoupgrade module had at https://github.com/PrestaShop/autoupgrade/blob/v4.14.2/autoupgrade.php#L214
1 parent c5b6f6b commit 755b2f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ps_googleanalytics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function uninstall()
250250
* @param string|null $domain
251251
* @param string|null $locale
252252
*/
253-
protected function trans($id, array $parameters = [], $domain = null, $locale = null)
253+
public function trans($id, array $parameters = [], $domain = null, $locale = null)
254254
{
255255
if (method_exists('Module', 'trans')) {
256256
return parent::trans($id, $parameters, $domain, $locale);

0 commit comments

Comments
 (0)