Page MenuHomePhabricator

Update link to Commons
Closed, ResolvedPublic

Description

From CommonSettings.php:
if( $wgDBname != 'commonswiki' ) {
$wgForeignFileRepos[] = array(

		'class'            => 'ForeignDBViaLBRepo',
		'name'             => 'shared',
		'directory'        => '/mnt/upload6/wikipedia/commons',
		'url'              => 'http://upload.wikimedia.org/wikipedia/commons',
		'hashLevels'       => 2,
		'thumbScriptUrl'   => false,
		'transformVia404'  => true,
		'hasSharedCache'   => true,
		'descBaseUrl'      => 'http://commons.wikimedia.org/wiki/Image:',
		'scriptDirUrl'     => 'http://commons.wikimedia.org/w',
		'fetchDescription' => true,
		'wiki'             => 'commonswiki',
		'initialCapital'   => true,
		);

Please change 'descBaseUrl' to 'http://commons.wikimedia.org/wiki/File:', due to namespace rename. This will save a few HTTP redrects.


Version: unspecified
Severity: normal

Details

Reference
bz25243

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:13 PM
bzimport set Reference to bz25243.
bzimport added a subscriber: Unknown Object (MLST).