From b7ab358297c618d55a84f586a238d627ad890e2c Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 21 Jul 2011 08:32:59 -0700 Subject: [PATCH] Added __toString method to Lang class. --- system/lang.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system/lang.php b/system/lang.php index 07cce849..f18bc4cd 100644 --- a/system/lang.php +++ b/system/lang.php @@ -135,4 +135,12 @@ public function replace($replacements) return $this; } + /** + * Get the string content of the language line. + */ + public function __toString() + { + return $this->get(); + } + } \ No newline at end of file