Index: branches/REL1_4/phase3/includes/Setup.php |
— | — | @@ -368,6 +368,25 @@ |
369 | 369 | $wgTitle = Title::makeTitle( NS_SPECIAL, 'Error' ); |
370 | 370 | $wgArticle = new Article($wgTitle); |
371 | 371 | |
| 372 | +# Site notice |
| 373 | + |
| 374 | +$notice = wfMsg( 'sitenotice' ); |
| 375 | +if($notice == '<sitenotice>') $notice = ''; |
| 376 | +# Allow individual wikis to turn it off |
| 377 | +if ( $notice == '-' ) { |
| 378 | + $wgSiteNotice = ''; |
| 379 | +} else { |
| 380 | + # if($wgSiteNotice) $notice .= $wgSiteNotice; |
| 381 | + if ($notice == '') { |
| 382 | + $notice = $wgSiteNotice; |
| 383 | + } |
| 384 | + if($notice != '-' && $notice != '') { |
| 385 | + $specialparser = new Parser(); |
| 386 | + $parserOutput = $specialparser->parse( $notice, $wgTitle, $wgOut->mParserOptions, false ); |
| 387 | + $wgSiteNotice = $parserOutput->getText(); |
| 388 | + } |
| 389 | +} |
| 390 | + |
372 | 391 | wfProfileOut( $fname.'-misc2' ); |
373 | 392 | wfProfileIn( $fname.'-extensions' ); |
374 | 393 | |