瀏覽代碼

Revert "optimization to call `$this->getOption('code')` only once"

This reverts commit 451616fa6550199c1d089de9ba9952556e6c8f5e.

Conflicts:
	Admin/BaseFieldDescription.php
Thomas Rabaix 11 年之前
父節點
當前提交
3578e37098
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Admin/BaseFieldDescription.php

+ 2 - 2
Admin/BaseFieldDescription.php

@@ -331,8 +331,8 @@ abstract class BaseFieldDescription implements FieldDescriptionInterface
         $parameters = array();
 
         // prefer method name given in the code option
-        if ($code) {
-            $getters[] = $code;
+        if ($this->getOption('code')) {
+            $getters[] = $this->getOption('code');
         }
         // parameters for the method given in the code option
         if($this->getOption('parameters')){