diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 13:55:11 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 13:55:11 -0700 |
commit | 2eeacd2656083739a588738b28d578e616d46c9c (patch) | |
tree | c6fdcf8ea834ef04f1e936e7e99d6c59ecf34fb1 /modules | |
parent | 6458b47e3ed3ef31d08080a66781ee53bf0f25ed (diff) |
use an implicit cast to convert the translated error message to a string as it is encoded by the json routines and will be treated as an object otherwise
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tag/controllers/admin_tags.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php index ced73d65..b42e3748 100644 --- a/modules/tag/controllers/admin_tags.php +++ b/modules/tag/controllers/admin_tags.php @@ -89,7 +89,7 @@ class Admin_Tags_Controller extends Admin_Controller { $new_name = $this->input->post("name"); $new_tag = ORM::factory("tag")->where("name", $new_name)->find(); if ($new_tag->loaded) { - $error_msg = t("There is already a tag with that name")->__toString(); + $error_msg = (string)t("There is already a tag with that name"); $valid = false; } } else { |