X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefines.php;h=26deb2baf3c63efbcdb78ee06d6bada69ac86a35;hb=c0a70e15bafb366c37e21dad7380366a94035c72;hp=f5afd26556d42628a0a454971990b9116a0c4e17;hpb=c5f29c3845b38c4e47f036cd6a29a5f50ebbb72f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Defines.php b/includes/Defines.php index f5afd26556..26deb2baf3 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -1,6 +1,11 @@ isSyndicated() is true - */ -$wgFeedClasses = array( - 'rss' => 'RSSFeed', - 'atom' => 'AtomFeed', -); - -/**@{ - * Maths constants - */ -define( 'MW_MATH_PNG', 0 ); -define( 'MW_MATH_SIMPLE', 1 ); -define( 'MW_MATH_HTML', 2 ); -define( 'MW_MATH_SOURCE', 3 ); -define( 'MW_MATH_MODERN', 4 ); -define( 'MW_MATH_MATHML', 5 ); -/**@}*/ - /**@{ * Cache type */ @@ -107,13 +92,13 @@ define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works define( 'CACHE_NONE', 0 ); // Do not cache define( 'CACHE_DB', 1 ); // Store cache objects in the DB define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers -define( 'CACHE_ACCEL', 3 ); // eAccelerator +define( 'CACHE_ACCEL', 3 ); // APC, XCache or WinCache define( 'CACHE_DBA', 4 ); // Use PHP's DBA extension to store in a DBM-style database /**@}*/ /**@{ * Media types. - * This defines constants for the value returned by Image::getMediaType() + * This defines constants for the value returned by File::getMediaType() */ define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' ); // unknown format define( 'MEDIATYPE_BITMAP', 'BITMAP' ); // some bitmap image or image source (like psd, etc). Can't scale up. @@ -164,13 +149,12 @@ define( 'MW_DATE_ISO', 'ISO 8601' ); /**@{ * RecentChange type identifiers - * This may be obsolete; log items are now used for moves? */ define( 'RC_EDIT', 0); define( 'RC_NEW', 1); -define( 'RC_MOVE', 2); +define( 'RC_MOVE', 2); // obsolete define( 'RC_LOG', 3); -define( 'RC_MOVE_OVER_REDIRECT', 4); +define( 'RC_MOVE_OVER_REDIRECT', 4); // obsolete /**@}*/ /**@{ @@ -210,6 +194,9 @@ define( 'MW_SUPPORTS_PARSERFIRSTCALLINIT', 1 ); define( 'MW_SUPPORTS_LOCALISATIONCACHE', 1 ); /**@}*/ +/** Support for $wgResourceModules */ +define( 'MW_SUPPORTS_RESOURCE_MODULES', 1 ); + /**@{ * Allowed values for Parser::$mOutputType * Parameter to Parser::startExternalParse(). @@ -250,4 +237,15 @@ define( 'APCOND_ISIP', 5 ); define( 'APCOND_IPINRANGE', 6 ); define( 'APCOND_AGE_FROM_EDIT', 7 ); define( 'APCOND_BLOCKED', 8 ); +define( 'APCOND_ISBOT', 9 ); /**@}*/ + +/** + * Protocol constants for wfExpandUrl() + */ +define( 'PROTO_HTTP', 'http://' ); +define( 'PROTO_HTTPS', 'https://' ); +define( 'PROTO_RELATIVE', '//' ); +define( 'PROTO_CURRENT', null ); +define( 'PROTO_CANONICAL', 1 ); +define( 'PROTO_INTERNAL', 2 );