From c5ec4314b48eef31f009e12e67f6e0b17f932c3b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 21 Oct 2007 00:49:13 +0000 Subject: [PATCH] added set_default_lang() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43656 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Translatable.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/model/Translatable.php b/core/model/Translatable.php index cd7ab0790..f243b8896 100755 --- a/core/model/Translatable.php +++ b/core/model/Translatable.php @@ -103,6 +103,15 @@ class Translatable extends DataObjectDecorator { static function default_lang() { return self::$default_lang; } + + /** + * Set default language. + * + * @paran $lang String + */ + static function set_default_lang($lang) { + self::$default_lang = $lang; + } /** * Check whether the default and current reading language are the same.