Move default logo to resources/assets/ directory

The problem here is that the path to 'wiki.png' is saved in users'
LocalSettings.

We likely should not remap the path, like we did for footer license
icons in Ic7c32e56:

* It's likely that users changed their logo image by overwriting the
  file in skins/common/.
* If the normal upgrade process is followed (overwrite-uploading new
  files), the old file will still be there with the skins/common/
  directory.
* If it does cause problems, they'll be rather easy to notice and fix.

On the other hand, maybe we should?

* This is going to be annoying for git users.
* It will bite anyone who deletes all MediaWiki files when upgrading
  via tarball, which is more likely with the recent skin system
  changes encouraging users to remove old cruft from skins/ directory.

Bug: 69277
Change-Id: I175fe57048ebf9d348fb2fe67bf62cf5df389003
This commit is contained in:
Bartosz Dziewoński 2014-09-18 13:01:33 +02:00
parent 900b772ed8
commit 96b3dd0ae3
4 changed files with 3 additions and 3 deletions

View file

@ -253,7 +253,7 @@ $wgFileCacheDirectory = false;
/**
* The URL path of the wiki logo. The logo size should be 135x135 pixels.
* Defaults to "{$wgStylePath}/common/images/wiki.png".
* Defaults to "$wgResourceBasePath/resources/assets/wiki.png".
*/
$wgLogo = false;

View file

@ -82,7 +82,7 @@ if ( $wgResourceBasePath === null ) {
}
if ( $wgLogo === false ) {
$wgLogo = "$wgStylePath/common/images/wiki.png";
$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
}
if ( $wgUploadPath === false ) {

View file

@ -225,7 +225,7 @@ abstract class Installer {
// $wgLogo is probably wrong (bug 48084); set something that will work.
// Single quotes work fine here, as LocalSettingsGenerator outputs this unescaped.
'wgLogo' => '$wgStylePath/common/images/wiki.png',
'wgLogo' => '$wgScriptPath/resources/assets/wiki.png',
);
/**

View file

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB