X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FDefaultSettings.php;h=0df20f2621a9811fa4550c3e9a702546aa09cfb2;hb=eccf8dd01e27165d44729b570e74d32159967cd8;hp=0fe338855093607814a017aa30737d4ad6f9b17f;hpb=d9fab387933ded5f83eddba870cabc7134741a60;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 0fe3388550..0df20f2621 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -529,11 +529,12 @@ $wgUseInstantCommons = false; * Array of foreign file repo names (set in $wgForeignFileRepos above) that * are allowable upload targets. These wikis must have some method of * authentication (i.e. CentralAuth), and be CORS-enabled for this wiki. + * The string 'local' signifies the default local file repository. * * Example: * $wgForeignUploadTargets = array( 'shared' ); */ -$wgForeignUploadTargets = []; +$wgForeignUploadTargets = [ 'local' ]; /** * Configuration for file uploads using the embeddable upload dialog @@ -567,10 +568,14 @@ $wgUploadDialog = [ // * upload-form-label-not-own-work-local-generic-foreign 'foreign' => 'generic-foreign', ], - // Upload comment to use. Available replacements: + // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single + // string value, in which case it is used for both kinds of uploads. Available replacements: // * $HOST - domain name from which a cross-wiki upload originates // * $PAGENAME - wiki page name from which an upload originates - 'comment' => '', + 'comment' => [ + 'local' => '', + 'foreign' => '', + ], // Format of the file page wikitext to be generated from the fields input by the user. 'format' => [ // Wrapper for the whole page. Available replacements: