/* Protected Members */
protected $request;
- protected $server;
protected $modules;
protected $language;
protected $direction;
protected $user;
protected $debug;
protected $only;
+ protected $version;
protected $hash;
/* Methods */
$this->user = $request->getVal( 'user' );
$this->debug = $request->getBool( 'debug' ) && $request->getVal( 'debug' ) === 'true';
$this->only = $request->getVal( 'only' );
+ $this->version = $request->getVal( 'version' );
// Fallback on system defaults
if ( !$this->language ) {
return $this->only;
}
+ public function getVersion() {
+ return $this->version;
+ }
+
public function shouldIncludeScripts() {
return is_null( $this->only ) || $this->only === 'scripts';
}
public function getHash() {
return isset( $this->hash ) ?
- $this->hash : $this->hash =
- implode( '|', array( $this->language, $this->skin, $this->user, $this->debug, $this->only ) );
+ $this->hash : $this->hash = implode( '|', array(
+ $this->language, $this->direction, $this->skin, $this->user, $this->debug, $this->only, $this->version
+ ) );
}
-}
+}
\ No newline at end of file