X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=3d5bee2a0810e1b70ab985949facfa071d9a3325;hb=7b6b8e9b53c3c934b6ff9a2026683153310e2415;hp=b10cf2380994235b1d88797c1006073dbd429126;hpb=72514f50d55bd5b8107fdf1925ae012d6dae42a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index b10cf23809..3d5bee2a08 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -181,6 +181,20 @@ $wgLockManagers[] = [ 'class' => 'NullLockManager', ]; +/** + * Default parameters for the "" tag. + * @see DefaultSettings.php for description of the fields. + */ +$wgGalleryOptions += [ + 'imagesPerRow' => 0, + 'imageWidth' => 120, + 'imageHeight' => 120, + 'captionLength' => true, + 'showBytes' => true, + 'showDimensions' => true, + 'mode' => 'traditional', +]; + /** * Initialise $wgLocalFileRepo from backwards-compatible settings */ @@ -669,14 +683,19 @@ $ps_memcached = Profiler::instance()->scopedProfileIn( $fname . '-memcached' ); $wgMemc = wfGetMainCache(); $messageMemc = wfGetMessageCacheStorage(); -$parserMemc = wfGetParserCacheStorage(); + +/** + * @deprecated since 1.30 + */ +$parserMemc = new DeprecatedGlobal( 'parserMemc', function () { + return MediaWikiServices::getInstance()->getParserCache()->getCacheStorage(); +}, '1.30' ); wfDebugLog( 'caches', 'cluster: ' . get_class( $wgMemc ) . ', WAN: ' . ( $wgMainWANCache === CACHE_NONE ? 'CACHE_NONE' : $wgMainWANCache ) . ', stash: ' . $wgMainStash . ', message: ' . get_class( $messageMemc ) . - ', parser: ' . get_class( $parserMemc ) . ', session: ' . get_class( ObjectCache::getInstance( $wgSessionCacheType ) ) );