Core changes for r55234: generalize some CSS for mwsuggest
[lhc/web/wiklou.git] / skins / MonoBook.php
index 2c8c157..175bca0 100644 (file)
@@ -20,13 +20,9 @@ if( !defined( 'MEDIAWIKI' ) )
  */
 class SkinMonoBook extends SkinTemplate {
        /** Using monobook. */
-       function initPage( OutputPage $out ) {
-               parent::initPage( $out );
-               $this->skinname  = 'monobook';
-               $this->stylename = 'monobook';
-               $this->template  = 'MonoBookTemplate';
+       var $skinname = 'monobook', $stylename = 'monobook',
+               $template = 'MonoBookTemplate';
 
-       }
        function setupSkinUserCss( OutputPage $out ) {
                global $wgHandheldStyle;
 
@@ -249,7 +245,7 @@ HTML
        <div id="p-search" class="portlet">
                <h5 <?php $this->html('userlangattributes') ?>><label for="searchInput"><?php $this->msg('search') ?></label></h5>
                <div id="searchBody" class="pBody">
-                       <form action="<?php $this->text('wgScript') ?>" id="searchform"><div>
+                       <form action="<?php $this->text('wgScript') ?>" id="searchform">
                                <input type='hidden' name="title" value="<?php $this->text('searchtitle') ?>"/>
                                <input id="searchInput" name="search" type="text"<?php echo $this->skin->tooltipAndAccesskey('search');
                                        if( isset( $this->data['search'] ) &&  $this->data['search'] ) {
@@ -259,7 +255,7 @@ HTML
 
                                <div><a href="<?php $this->text('searchaction') ?>" rel="search"><?php $this->msg('powersearch-legend') ?></a></div><?php } ?>
 
-                       </div></form>
+                       </form>
                </div>
        </div>
 <?php