Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 8aa3f67

Browse files
author
Jens Schulze
committed
WIP: improve LocaleTrait
1 parent e96a2d1 commit 8aa3f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Model/Common/LocaleTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function setLocale($locale)
2121
*/
2222
public function toJson()
2323
{
24-
$data = parent::toArray();
24+
$data = $this->toArray();
2525
if (isset($data['locale'])) {
2626
$data['locale'] = str_replace('_', '-', $data['locale']);
2727
}

0 commit comments

Comments
 (0)