r36689 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36688‎ | r36689 | r36690 >
Date:22:51, 26 June 2008
Author:dale
Status:old
Tags:
Comment:
skin updates
Modified paths:
  • /branches/MetavidWiki-exp/skins/mvpcf.php (modified) (history)

Diff [purge]

Index: branches/MetavidWiki-exp/skins/mvpcf.php
@@ -48,7 +48,7 @@
4949 * @access private
5050 */
5151 function execute() {
52 - global $wgUser, $wgTitle;
 52+ global $wgUser, $wgTitle, $wgRequest;
5353 $this->user_skin = $wgUser->getSkin();
5454
5555 // Suppress warnings to prevent notices about missing indexes in $this->data
@@ -57,13 +57,12 @@
5858 $this->data['showjumplinks']=false;
5959 $this->data['tagline']=false;
6060 $this->get_head_html();
61 - switch($wgTitle->getDBkey()){
62 - case 'Main_Page':
63 - $this->get_splash_page_html();
64 - break;
65 - default:
66 - $this->get_base_body_html();
67 - break;
 61+ if($wgTitle->getNamespace()== NS_MAIN &&
 62+ $wgTitle->getDBkey()=='Main_Page' &&
 63+ $wgRequest->getText( 'action', 'view' )=='view'){
 64+ $this->get_splash_page_html();
 65+ }else{
 66+ $this->get_base_body_html();
6867 }
6968 $this->get_footer_html();
7069 }

Status & tagging log