Посібник:Setup.php
Appearance
| Файл MediaWiki: Setup.php | |
|---|---|
| Розташування: | includes/ |
| Вихідний код: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Класи: | Find code • Find documentation |
Деталі
Setup.php file is included from WebStart.php, provided the MW_NO_SETUP constant is not defined.
It must be included after LocalSettings.php.
Actions taken
It does the following:
- First it changes some configuration settings such as paths variables that aren't customized in
LocalSettings.phpso that they don't need to be modified if $wgScriptPath is changed or it updates new configuration settings from the backward compatible ones.
- За тим він вючає деякі загальновживані файли.
- Стартує PHP сесію, якщо надані куки сесії або токена користувача.
- It creates stub objects for global object variables, those globals will be unstubbed at the first call of one of their method.
- Воно запускає всі функції у $wgExtensionFunctions.
- І викликає деякі застарілі гачки для зворотньої сумісності: LogPageValidTypes, LogPageLogName, LogPageLogHeader і LogPageActionText.