diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 22:42:02 -0800 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-16 22:42:02 -0800 | 
| commit | 5c49c041e740b8bb8eb6afae8563731ab858aa97 (patch) | |
| tree | be57fe84342c318291b7aa9f397c72f234c8c827 /modules/tag | |
| parent | 1c85cf6397d8c780db0d2ade185e0bbf714a57a6 (diff) | |
Use "(string) $form" instead of "$form->__toString()"
Diffstat (limited to 'modules/tag')
| -rw-r--r-- | modules/tag/controllers/admin_tags.php | 4 | ||||
| -rw-r--r-- | modules/tag/controllers/tags.php | 4 | 
2 files changed, 2 insertions, 6 deletions
| diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php index e20b8ac8..3b605a4e 100644 --- a/modules/tag/controllers/admin_tags.php +++ b/modules/tag/controllers/admin_tags.php @@ -60,9 +60,7 @@ class Admin_Tags_Controller extends Admin_Controller {          array("result" => "success",                "location" => url::site("admin/tags")));      } else { -      print json_encode( -        array("result" => "error", -              "form" => $form->__toString())); +      print json_encode(array("result" => "error", "form" => (string) $form));      }    } diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index 992c7411..e28b7a83 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -71,9 +71,7 @@ class Tags_Controller extends Controller {          array("result" => "success",                "cloud" => tag::cloud(30)->__toString()));      } else { -      print json_encode( -        array("result" => "error", -              "form" => $form->__toString())); +      print json_encode(array("result" => "error", "form" => (string) $form));      }    } | 
