X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FSkin.php;h=93f92e9449e01b8ac50326450fd5659c7c887403;hb=010c456825ef537851976ee91802a2cc5553b3bf;hp=9cc94f487d3bf404747846a1d1dbb47b7af3ee7c;hpb=2f0d048cc69a1edfea1075b00251ed13507967d2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Skin.php b/includes/Skin.php index 9cc94f487d..93f92e9449 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -303,12 +303,6 @@ class Skin extends Linker { $out->out( $out->headElement( $this ) ); - $out->out( "\ngetBodyOptions(); - foreach ( $ops as $name => $val ) { - $out->out( " $name='$val'" ); - } - $out->out( ">\n" ); if ( $wgDebugComments ) { $out->out( "\n" ); @@ -657,29 +651,6 @@ CSS; $out->addStyle( 'common/common_rtl.css', '', '', 'rtl' ); } - function getBodyOptions() { - global $wgUser, $wgOut, $wgRequest, $wgContLang; - - extract( $wgRequest->getValues( 'oldid', 'redirect', 'diff' ) ); - - if ( 0 != $this->mTitle->getNamespace() ) { - $a = array( 'bgcolor' => '#ffffec' ); - } - else $a = array( 'bgcolor' => '#FFFFFF' ); - if( $wgOut->isArticle() && $wgUser->getOption( 'editondblclick' ) && - $this->mTitle->quickUserCan( 'edit' ) ) { - $s = $this->mTitle->getFullURL( $this->editUrlOptions() ); - $s = 'document.location = "' .Xml::escapeJsString( $s ) .'";'; - $a += array( 'ondblclick' => $s ); - } - $a['class'] = - 'mediawiki' . - ' '.( $wgContLang->getDir() ). - ' '.$this->getPageClasses( $this->mTitle ) . - ' skin-'. Sanitizer::escapeClass( $this->getSkinName() ); - return $a; - } - function getPageClasses( $title ) { $numeric = 'ns-'.$title->getNamespace(); if( $title->getNamespace() == NS_SPECIAL ) {