From: Timo Tijhof Date: Fri, 13 Jan 2017 00:46:25 +0000 (-0800) Subject: Move libs/time/defines.php inclusion from GlobalFunctions to Defines.php X-Git-Tag: 1.31.0-rc.0~4329^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22config_fonctions%22%2C%20%22image_process=%24process%22%29%20.%20%22?a=commitdiff_plain;h=34060273e7c24e2df99e953a4333783248a0f74c;p=lhc%2Fweb%2Fwiklou.git Move libs/time/defines.php inclusion from GlobalFunctions to Defines.php * Verified none of these constants depend on each other. * Move them to the top of Defines.php for consistency. Change-Id: I19c77e706d69bff513e4abafd0300207de0dbb1d --- diff --git a/includes/Defines.php b/includes/Defines.php index 06168980ce..35c2a2d8ad 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -20,6 +20,11 @@ * @file */ +require_once __DIR__ . '/libs/mime/defines.php'; +require_once __DIR__ . '/libs/time/defines.php'; +require_once __DIR__ . '/libs/rdbms/defines.php'; +require_once __DIR__ . '/compat/normal/UtfNormalDefines.php'; + /** * @defgroup Constants MediaWiki constants */ @@ -97,8 +102,6 @@ define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCac define( 'CACHE_ACCEL', 3 ); // APC, XCache or WinCache /**@}*/ -require_once __DIR__ . '/libs/mime/defines.php'; - /**@{ * Antivirus result codes, for use in $wgAntivirusSetup. */ @@ -153,16 +156,6 @@ define( 'EDIT_AUTOSUMMARY', 64 ); define( 'EDIT_INTERNAL', 128 ); /**@}*/ -/** - * Database related - */ -require_once __DIR__ . '/libs/rdbms/defines.php'; - -/** - * Unicode and normalisation related - */ -require_once __DIR__ . '/compat/normal/UtfNormalDefines.php'; - /**@{ * Hook support constants */ diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 6549fdd57d..5343248a9c 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1999,10 +1999,6 @@ function wfRestoreWarnings() { MediaWiki\suppressWarnings( true ); } -# Autodetect, convert and provide timestamps of various types - -require_once __DIR__ . '/libs/time/defines.php'; - /** * Get a timestamp string in one of various formats *