From: Alexandre Emsenhuber Date: Sat, 19 Mar 2011 12:53:56 +0000 (+0000) Subject: Per Hashar, fix for r83673: only accept StubContLang and StubUserLang for stub objects X-Git-Tag: 1.31.0-rc.0~31323 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=ef1144e2e15e6a88f1161681adfcf05f1bdf4d24;p=lhc%2Fweb%2Fwiklou.git Per Hashar, fix for r83673: only accept StubContLang and StubUserLang for stub objects --- diff --git a/includes/Message.php b/includes/Message.php index 61f561513b..6731f1b39f 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -206,7 +206,7 @@ class Message { * @return Message: $this */ public function inLanguage( $lang ) { - if( $lang instanceof Language || $lang instanceof StubObject ){ + if ( $lang instanceof Language || $lang instanceof StubContLang || $lang instanceof StubUserLang ) { $this->language = $lang; } elseif ( is_string( $lang ) ) { if( $this->language->getCode() != $lang ) {