瀏覽代碼

Merge pull request #1869 from EmmanuelVella/patch-16

Use getTranslationDomain() in trans/tranchoice
Thomas 11 年之前
父節點
當前提交
dbf3d8d905
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Admin/Admin.php

+ 2 - 2
Admin/Admin.php

@@ -2102,7 +2102,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
      */
     public function trans($id, array $parameters = array(), $domain = null, $locale = null)
     {
-        $domain = $domain ?: $this->translationDomain;
+        $domain = $domain ?: $this->getTranslationDomain();
 
         if (!$this->translator) {
             return $id;
@@ -2124,7 +2124,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
      */
     public function transChoice($id, $count, array $parameters = array(), $domain = null, $locale = null)
     {
-        $domain = $domain ?: $this->translationDomain;
+        $domain = $domain ?: $this->getTranslationDomain();
 
         if (!$this->translator) {
             return $id;