function setNumberHeadings( $x ) { return wfSetVar( $this->mNumberHeadings, $x ); }
function setAllowSpecialInclusion( $x ) { return wfSetVar( $this->mAllowSpecialInclusion, $x ); }
function setTidy( $x ) { return wfSetVar( $this->mTidy, $x ); }
- function setSkin( $x ) { $this->mSkin = $x; }
+ function setSkin( $x ) {}
function setInterfaceMessage( $x ) { return wfSetVar( $this->mInterfaceMessage, $x ); }
function setTargetLanguage( $x ) { return wfSetVar( $this->mTargetLanguage, $x, true ); }
function setMaxIncludeSize( $x ) { return wfSetVar( $this->mMaxIncludeSize, $x ); }
*
* @since 1.17
* @param $forOptions Array
- * @param $title Title: used to get the content language of the page
+ * @param $title Title: will be used to get the page content language
* @return \string Page rendering hash
*/
public function optionsHash( $forOptions, $title = null ) {
- global $wgRenderHashAppend, $wgTitle;
+ global $wgContLang, $wgRenderHashAppend;
$confstr = '';
// add in language specific options, if any
// @todo FIXME: This is just a way of retrieving the url/user preferred variant
- if( !is_null( $title ) ) {
- $confstr .= $title->getPageLanguage()->getExtraHashOptions();
- } else {
- global $wgContLang;
- $confstr .= $wgContLang->getExtraHashOptions();
- }
+ $confstr .= $wgContLang->getExtraHashOptions();
$confstr .= $wgRenderHashAppend;