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