|
|
Ligne 30 : |
Ligne 30 : |
|
| |
|
|
| |
|
| $wgHooks['BeforePageDisplay'][] = function( $out, $skin ) {
| |
| $title = Title::newFromText( 'SidebarTree', NS_MEDIAWIKI );
| |
| $page = WikiPage::factory( $title );
| |
| $html = $out->parseAsContent( $page->getContent()->getNativeData() );
| |
| $out->addHTML( "<div id=\"wikitext-sidebar\">$html</div>" );
| |
| return true;
| |
| };
| |
| **/ | | **/ |
|
| |
|