Browse Source

Added __toString method to Lang class.

Taylor Otwell 13 years ago
parent
commit
b7ab358297
1 changed files with 8 additions and 0 deletions
  1. 8 0
      system/lang.php

+ 8 - 0
system/lang.php

@@ -135,4 +135,12 @@ class Lang {
 		return $this;
 	}
 
+	/**
+	 * Get the string content of the language line.
+	 */
+	public function __toString()
+	{
+		return $this->get();
+	}
+
 }