Skip to content

Commit

Permalink
Merge pull request #294 from crazycatdevs/master
Browse files Browse the repository at this point in the history
Correction of #293
  • Loading branch information
splitbrain committed Dec 14, 2023
2 parents 05c91d0 + c4be951 commit 5a78e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.php
Expand Up @@ -100,7 +100,8 @@ public function translateJS(Event $event)

$count = count($event->data['script']);
for ($i = 0; $i < $count; $i++) {
if (strpos($event->data['script'][$i]['src'], '/lib/exe/js.php') !== false) {
if (array_key_exists('src', $event->data['script'][$i]) &&
strpos($event->data['script'][$i]['src'], '/lib/exe/js.php') !== false) {
$event->data['script'][$i]['src'] .= '&lang=' . hsc($conf['lang']);
}
}
Expand Down

0 comments on commit 5a78e2c

Please sign in to comment.