Skip to content

Commit dcf125f

Browse files
authored
[5.4] Fix for untranslated JLIB_APPLICATION_ERROR string (joomla#45028)
1 parent 18bf31c commit dcf125f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Component/Router/RouterView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function getName()
266266
$r = null;
267267

268268
if (!preg_match('/(.*)Router/i', \get_class($this), $r)) {
269-
throw new \Exception('JLIB_APPLICATION_ERROR_ROUTER_GET_NAME', 500);
269+
throw new \Exception(\sprintf($this->app->getLanguage()->_('JLIB_APPLICATION_ERROR_GET_NAME'), __METHOD__), 500);
270270
}
271271

272272
$this->name = str_replace('com_', '', ComponentHelper::getComponentName($this, strtolower($r[1])));

0 commit comments

Comments
 (0)