[ResourceLoader] Use getLanguage() accessor as the field is lazy-loaded.
authorAaron <aschulz@wikimedia.org>
Fri, 25 May 2012 21:52:39 +0000 (14:52 -0700)
committerAaron <aschulz@wikimedia.org>
Fri, 25 May 2012 21:52:39 +0000 (14:52 -0700)
Change-Id: I6a106d1557366f6ff4586c9604fd324be51d7e1f

includes/resourceloader/ResourceLoaderContext.php

index 87a3c2d..0e96c6c 100644 (file)
@@ -161,7 +161,7 @@ class ResourceLoaderContext {
                        $this->direction = $this->request->getVal( 'dir' );
                        if ( !$this->direction ) {
                                # directionality based on user language (see bug 6100)
-                               $this->direction = Language::factory( $this->language )->getDir();
+                               $this->direction = Language::factory( $this->getLanguage() )->getDir();
                        }
                }
                return $this->direction;