Index: trunk/core/kernel/db/db_tag_processor.php
===================================================================
diff -u -r2308 -r2376
--- trunk/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 2308)
+++ trunk/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 2376)
@@ -17,10 +17,16 @@
}
- function IsNew($params)
+ /**
+ * Returns true if "new" button was pressed in toolbar
+ *
+ * @param Array $params
+ * @return bool
+ */
+ function IsNewMode($params)
{
$object =& $this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix, $params );
- return $object->GetID();
+ return $object->GetID() <= 0;
}
/**
@@ -553,9 +559,9 @@
function Error($params)
{
$field = $params['field'];
- $object =& $this->Application->recallObject($this->getPrefixSpecial(),$this->Prefix, $params);
+ $object =& $this->Application->recallObject($this->getPrefixSpecial(), $this->Prefix, $params);
- $msg = $object->GetErrorMsg($field);
+ $msg = $object->GetErrorMsg($field, false);
return $msg;
}
Index: trunk/core/kernel/db/dbitem.php
===================================================================
diff -u -r2357 -r2376
--- trunk/core/kernel/db/dbitem.php (.../dbitem.php) (revision 2357)
+++ trunk/core/kernel/db/dbitem.php (.../dbitem.php) (revision 2376)
@@ -573,15 +573,15 @@
* @return string
* @access public
*/
- function GetErrorMsg($field)
+ function GetErrorMsg($field, $force_escape = null)
{
if( !isset($this->FieldErrors[$field]) ) return '';
$err = getArrayValue($this->FieldErrors[$field], 'pseudo');
if( isset($this->Fields[$field]['error_msgs'][$err]) )
{
$msg = $this->Fields[$field]['error_msgs'][$err];
- $msg = $this->Application->ReplaceLanguageTags($msg);
+ $msg = $this->Application->ReplaceLanguageTags($msg, $force_escape);
}
else
{
Index: trunk/kernel/admin_templates/regional/languages_edit.tpl
===================================================================
diff -u -r2373 -r2376
--- trunk/kernel/admin_templates/regional/languages_edit.tpl (.../languages_edit.tpl) (revision 2373)
+++ trunk/kernel/admin_templates/regional/languages_edit.tpl (.../languages_edit.tpl) (revision 2376)
@@ -72,7 +72,7 @@
-
+
">
|