문제

So I got stuck maintaining a MediaWiki while the person who set it up is away, and I know nothing about it, not even where its stored on the server (though I suspect in the wamp/www folder). I was asked to add a few pages to the whitelist so they could be viewed without logging in. I found the MediaWiki manual page on whitelist, but it doesn't say where to put that snippet of code. Which file(s) gets that treatment?

도움이 되었습니까?

해결책

You need to find out where your MediaWiki installation is and then add the pages that you want to the end of the LocalSettings.php file like this:

$wgWhitelistRead[] = "Page_name";
$wgWhitelistRead[] = "Another_page_name";
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top