includes/resourceloader/DerivativeResourceLoaderContext.php 1 location
|
@@ 83-91 (lines=9) @@
|
| 80 |
|
$this->hash = null; |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
public function getDirection() { |
| 84 |
|
if ( $this->direction === self::INHERIT_VALUE ) { |
| 85 |
|
return $this->context->getDirection(); |
| 86 |
|
} |
| 87 |
|
if ( $this->direction === null ) { |
| 88 |
|
$this->direction = Language::factory( $this->getLanguage() )->getDir(); |
| 89 |
|
} |
| 90 |
|
return $this->direction; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
/** |
| 94 |
|
* @param string $direction |
includes/resourceloader/ResourceLoaderContext.php 1 location
|
@@ 195-204 (lines=10) @@
|
| 192 |
|
/** |
| 193 |
|
* @return string |
| 194 |
|
*/ |
| 195 |
|
public function getDirection() { |
| 196 |
|
if ( $this->direction === null ) { |
| 197 |
|
$this->direction = $this->getRequest()->getRawVal( 'dir' ); |
| 198 |
|
if ( !$this->direction ) { |
| 199 |
|
// Determine directionality based on user language (bug 6100) |
| 200 |
|
$this->direction = Language::factory( $this->getLanguage() )->getDir(); |
| 201 |
|
} |
| 202 |
|
} |
| 203 |
|
return $this->direction; |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
/** |
| 207 |
|
* @return string |