Index: branches/MetavidWiki-exp/skins/mvpcf.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | * @access private |
50 | 50 | */ |
51 | 51 | function execute() { |
52 | | - global $wgUser, $wgTitle; |
| 52 | + global $wgUser, $wgTitle, $wgRequest; |
53 | 53 | $this->user_skin = $wgUser->getSkin(); |
54 | 54 | |
55 | 55 | // Suppress warnings to prevent notices about missing indexes in $this->data |
— | — | @@ -57,13 +57,12 @@ |
58 | 58 | $this->data['showjumplinks']=false; |
59 | 59 | $this->data['tagline']=false; |
60 | 60 | $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(); |
68 | 67 | } |
69 | 68 | $this->get_footer_html(); |
70 | 69 | } |