Page MenuHomePhabricator

Define $wgUploadMissingFileUrl for ptwikibooks
Closed, ResolvedPublic

Description

This is a follow up to the following:

  • Bug 27069 - Define $wgUploadNavigationUrl for ptwikibooks

I noticed that the links to missing files still do not point to Commons, and I didn't find any message (on [[Special:AllMessages]]) which I could use locally to point these uploads to Commons. Then I found

  • Bug 18885 - Red links for media files do not support shared repositories

which was fixed by introduction of the [[mw:$wgUploadMissingFileUrl]] variable (see r69997).

So, could you set that variable to point the red links of our files to Commons? If I understood correctly, it is enough to copy the same url which is in use at
http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php
i.e., 'http://commons.wikimedia.org/wiki/Commons:Upload/pt?uselang=pt'


Version: unspecified
Severity: normal
URL: https://secure.wikimedia.org/wikibooks/pt/wiki/Tópico:Wikilivros:Diálogos_comunitários/Imagens_usadas_no_projeto?uselang=en

Details

Reference
bz29360

Related Objects

Event Timeline

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

jeluf wrote:

Your change has been completed.
Please reopen this ticket if anything went wrong.

The following configuration settings have been changed:

Index: InitialiseSettings.php

  • InitialiseSettings.php (revision 1905)

+++ InitialiseSettings.php (working copy)
@@ -9122,6 +9122,11 @@

'default' => CACHE_MEMCACHED,
'testwiki' => 'mysql-multiwrite', # Parser cache in MySQL test -- TS 2011-06-23

),
+
+'wgUploadMissingFileUrl' => array(
+ 'default' => false,
+ 'ptwikibooks' => 'http://commons.wikimedia.org/wiki/Commons:Upload/pt?uselang=pt',
+),
DO NOT DISABLE WITHOUT CONTACTING PHILIPPE / LEGAL!
Installed by Andrew, 2011-04-26

'wmgUseDisableAccount' => array(

You can find the entire config file at
http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php

Sorry for bothering you again, but I noticed I problem with our choice of pointing this link to
[[commons:Commons:Upload/pt]]
instead of
[[commons:Special:Upload]]

This makes the parameter "wpDestFile" to be discarded when the user follow the link to a page like
https://secure.wikimedia.org/wikipedia/commons/wiki/Commons:Upload/pt?uselang=pt&wpDestFile=EXAMPLE.jpg
because once he is on that page he will need to click in one of the options an they are just normal internal links, and do not preserve such parameters.

(compare with what happens when we go to:
https://secure.wikimedia.org/wikipedia/commons/wiki/Special:Upload?uselang=pt&wpDestFile=EXAMPLE.jpg
, i.e. the name of the file is used to fill in the corresponding field of the upload form)

So, could you change the variable to point to the special page instead?

"the special page instead" == Special:Upload ?

(In reply to comment #3)

"the special page instead" == Special:Upload ?

Yep!
http://commons.wikimedia.org/wiki/Special:Upload?uselang=pt

<logmsgbot> !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php 'bug 29360'
<morebots> Logged the message, Master

(In reply to comment #5)

<logmsgbot> !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php
'bug 29360'
<morebots> Logged the message, Master

Thank you! =)