Index: branches/5.1.x/core/kernel/kbase.php =================================================================== diff -u -N -r12657 -r13086 --- branches/5.1.x/core/kernel/kbase.php (.../kbase.php) (revision 12657) +++ branches/5.1.x/core/kernel/kbase.php (.../kbase.php) (revision 13086) @@ -1,6 +1,6 @@ 1 ? $parts[1] : ''; + $ret['PrefixSpecial'] = $prefix_special; + + return $ret; + } } class kDBBase extends kBase { @@ -458,7 +479,7 @@ { $allowed_modifiers = Array('required', 'multiple'); - if ($this->Application->IsAdmin()) { + if ($this->Application->isAdminUser) { // can change upload dir on the fly (admin only!) $allowed_modifiers[] = 'upload_dir'; } @@ -539,20 +560,25 @@ /** * Returns formatted field value * - * @param string $field + * @param string $name + * @param string $format + * * @return string * @access public */ - function GetField($name, $format=null) + function GetField($name, $format = null) { $options = $this->GetFieldOptions($name); - $val = $this->GetDBField($name); - $res = $val; - if (isset($options['formatter'])) { - $formatter =& $this->Application->recallObject($options['formatter']); - $res = $formatter->Format($val, $name, $this, $format ); + + if (array_key_exists('formatter', $options)) { + $formatter_class = $options['formatter']; + $value = $formatter_class == 'kMultiLanguage' ? '' : $this->GetDBField($name); + + $formatter =& $this->Application->recallObject($formatter_class); + return $formatter->Format($value, $name, $this, $format); } - return $res; + + return $this->GetDBField($name); } function HasField($name)