Is it possible to load different LocalSettings.php in MediaWiki based on login.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
LocalSettings.phpcan be treated as any other server-side script. These settings are not cached, so they are processed with each page request.In your case, simply choosing settings based on the user rights would be easy to implement. I would look at:
User::getRights()orUser::getGroups()and alter config options accordingly.
In addition,
/includes/WebStart.phploadsLocalSettings.php, so you could also change your config file path there based on user settings.