Manual:Setup.php

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Setup.php and the translation is 54% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎català • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語

Detalles

Setup.php file is included from WebStart.php , provided the MW_NO_SETUP constant is not defined. Debe incluirse luego de LocalSettings.php .

Acciones tomadas

Hace lo siguiente:

  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. Ejecuta todas las funciones en $wgExtensionFunctions .
  6. And calls some deprecated hooks for backward compatibility: LogPageValidTypes , LogPageLogName , LogPageLogHeader and LogPageActionText .

Véase también