X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialVersion.php;h=caa0e1fe8bcb941a7e1f6d31ef1799993594b841;hp=272f07415fce6dbf2f2fb24965baea425927fa8b;hb=f7e1770fb832aa77bf4e16ce8cc815f2b24dd10d;hpb=ce079cf6ad79ca8d3360817f809b219d166f9153 diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 272f07415f..caa0e1fe8b 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -78,9 +78,16 @@ class SpecialVersion extends SpecialPage { // Now figure out what to do switch ( strtolower( $parts[0] ) ) { case 'credits': + $out->addModuleStyles( 'mediawiki.special.version' ); + $wikiText = '{{int:version-credits-not-found}}'; if ( $extName === 'MediaWiki' ) { $wikiText = file_get_contents( $IP . '/CREDITS' ); + // Put the contributor list into columns + $wikiText = str_replace( + [ '', '' ], + [ '
', '
' ], + $wikiText ); } elseif ( ( $extNode !== null ) && isset( $extNode['path'] ) ) { $file = $this->getExtAuthorsFileName( dirname( $extNode['path'] ) ); if ( $file ) { @@ -725,7 +732,9 @@ class SpecialVersion extends SpecialPage { } } $cache = wfGetCache( CACHE_ANYTHING ); - $memcKey = wfMemcKey( 'specialversion-ext-version-text', $extension['path'], $this->coreId ); + $memcKey = $cache->makeKey( + 'specialversion-ext-version-text', $extension['path'], $this->coreId + ); list( $vcsVersion, $vcsLink, $vcsDate ) = $cache->get( $memcKey ); if ( !$vcsVersion ) {