Language: Introduce new method equals( Language $lang )
[lhc/web/wiklou.git] / includes / parser / ParserOptions.php
index 729b9db..91cd0f4 100644 (file)
@@ -701,7 +701,7 @@ class ParserOptions {
                }
                // Check the object and lazy-loaded options
                return (
-                       $this->mUserLang->getCode() === $other->mUserLang->getCode() &&
+                       $this->mUserLang->equals( $other->mUserLang ) &&
                        $this->getDateFormat() === $other->getDateFormat()
                );
        }