Manual:Setup.php/zh-hant

From MediaWiki.org

Jump to: navigation, search
MediaWiki檔案:Setup.php
位置: /includes/
原始碼: HEAD

1.15.11.14.11.6.12

類別:


本檔透過WebStart.phpMW_NO_SETUP未定義時插入。它必須在LocalSettings.php之後插入。

[edit] 說明

It does the following:

  1. First it changes some configuration settings such as paths variables that aren't customized in LocalSettings.php so that they don't need to be modified if $wgScriptPath is changed or it updates new configuration settings from the backward compatible ones.
  2. Next it includes some commonly used files.
  3. It starts the PHP session if the session cookie or the user token cookie are present.
  4. It creates stub objects for global object variables, those globals will be unstubbed at the first call of one of their method.
  5. It runs all functions in $wgSkinExtensionFunctions and $wgExtensionFunctions.
  6. And calls some deprecated hooks for backward compatibility: LogPageValidTypes, LogPageLogName, LogPageLogHeader and LogPageActionText.

[edit] 參閱