lhc/web/wiklou.git
12 years agore r106025 — apply follow up from Luca Fulchir
Mark A. Hershberger [Wed, 4 Jan 2012 18:01:10 +0000 (18:01 +0000)]
re r106025 — apply follow up from Luca Fulchir

12 years agoBug 33494 - Remove redundant CSS from chick/main.css
Sam Reed [Wed, 4 Jan 2012 17:30:09 +0000 (17:30 +0000)]
Bug 33494 - Remove redundant CSS from chick/main.css

Patch by Erwin Dokter

12 years agoRevert r107066, see CR comments for full rationale. Basically this moves the previewe...
Roan Kattouw [Wed, 4 Jan 2012 17:15:25 +0000 (17:15 +0000)]
Revert r107066, see CR comments for full rationale. Basically this moves the previewed CSS to the wrong place in the <head> while not actually applying Janus

12 years agofollow up r107932 with w/s fixes
Mark A. Hershberger [Wed, 4 Jan 2012 16:43:46 +0000 (16:43 +0000)]
follow up r107932 with w/s fixes

12 years agoAttempt to avoid a warning I got during input:
Mark A. Hershberger [Wed, 4 Jan 2012 16:29:01 +0000 (16:29 +0000)]
Attempt to avoid a warning I got during input:

$ 7z x -so ../dewikisource-20111012-pages-meta-history.xml.7z | php maintenance/importDump.php

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)

Processing archive: ../dewikisource-20111012-pages-meta-history.xml.7z

Extracting  dewikisource-20111012-pages-meta-history.xml
PHP Notice:  Undefined index: wgExtensionAliasesFiles in /home/mah/work/code/mediawiki/mw-
svn/includes/cache/CacheDependency.php on line 386
PHP Stack trace:
PHP   1. {main}() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:0
PHP   2. require_once() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:287
PHP   3. BackupReader->execute() /home/mah/work/code/mediawiki/mw-svn/maintenance/doMaintenance.php:105
PHP   4. BackupReader->importFromStdin() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:93
PHP   5. BackupReader->importFromHandle() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:249
PHP   6. WikiImporter->doImport() /home/mah/work/code/mediawiki/mw-svn/maintenance/importDump.php:282
PHP   7. WikiImporter->handlePage() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:411
PHP   8. WikiImporter->processTitle() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:534
PHP   9. Title->userCan() /home/mah/work/code/mediawiki/mw-svn/includes/Import.php:788
PHP  10. Title->getUserPermissionsErrorsInternal() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:1557
PHP  11. Title->checkSpecialsAndNSPermissions() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:2118
PHP  12. Title->getNsText() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:1728
PHP  13. Language->needsGenderDistinction() /home/mah/work/code/mediawiki/mw-svn/includes/Title.php:723
PHP  14. LocalisationCache->getItem() /home/mah/work/code/mediawiki/mw-svn/languages/Language.php:442
PHP  15. LocalisationCache->loadItem() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:218
PHP  16. LocalisationCache->initLanguage() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:283
PHP  17. LocalisationCache->isExpired() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:395
PHP  18. GlobalDependency->isExpired() /home/mah/work/code/mediawiki/mw-svn/includes/LocalisationCache.php:367

12 years agoapplication/vnd.oasis.opendocument.database [OFFICE]
Antoine Musso [Wed, 4 Jan 2012 16:24:41 +0000 (16:24 +0000)]
application/vnd.oasis.opendocument.database [OFFICE]

12 years agoFix Bug 29102 - Upgrade fails "Unknown character set: 'mysql4'
Mark A. Hershberger [Wed, 4 Jan 2012 15:52:48 +0000 (15:52 +0000)]
Fix Bug 29102 - Upgrade fails "Unknown character set: 'mysql4'

Fix suggested by Tremault and tested by maanto.  Confirmed by me.

12 years agomime.types: add opendoc database
Antoine Musso [Wed, 4 Jan 2012 15:14:08 +0000 (15:14 +0000)]
mime.types: add opendoc database

application/vnd.oasis.opendocument.database odb

12 years agomime.types: sort opendocument entries
Antoine Musso [Wed, 4 Jan 2012 15:12:08 +0000 (15:12 +0000)]
mime.types: sort opendocument entries

Sorted all application/vnd.oasis.opendocument entries, no other change.

12 years agoConsistency tweak.
Siebrand Mazeland [Wed, 4 Jan 2012 14:52:14 +0000 (14:52 +0000)]
Consistency tweak.

12 years agoXCF format: code style/comment
Antoine Musso [Wed, 4 Jan 2012 13:37:28 +0000 (13:37 +0000)]
XCF format: code style/comment

* Saved a level of indentation by returning early on command failure
* $md -> $metadata

Follow r107351

12 years agodocument getImageSize() return format
Antoine Musso [Wed, 4 Jan 2012 13:22:01 +0000 (13:22 +0000)]
document getImageSize() return format

Return array should return the same kind of array that PHP
internal method getimagesize() returns. See upstream doc:

  http://www.php.net/getimagesize

12 years agoenhance size tooltip on changelist
Antoine Musso [Wed, 4 Jan 2012 11:33:35 +0000 (11:33 +0000)]
enhance size tooltip on changelist

follow r104085

12 years agoGuessing a typo fix, could also be 'is a feed' but neither expression really opens...
Niklas Laxström [Wed, 4 Jan 2012 11:03:33 +0000 (11:03 +0000)]
Guessing a typo fix, could also be 'is a feed' but neither expression really opens to me

12 years agoJSTesting: javascripttest-pagetext-skin msg
Antoine Musso [Wed, 4 Jan 2012 10:51:57 +0000 (10:51 +0000)]
JSTesting: javascripttest-pagetext-skin msg

* added colon in the message
* reworded message

Follow r107919

12 years agoMade installer not install on SQLite less than 3.3.7, would prevent stuff like bug...
Max Semenik [Wed, 4 Jan 2012 10:41:39 +0000 (10:41 +0000)]
Made installer not install on SQLite less than 3.3.7, would prevent stuff like bug 25746. Also, threw MSSQL out of release notes - it can't be installed through the usual means.

12 years agoJSTesting: escape message
Antoine Musso [Wed, 4 Jan 2012 10:35:11 +0000 (10:35 +0000)]
JSTesting: escape message

Replaced call to wfMsg() by wfMsgHtml() just to be safe.
Per cr on r107919.

12 years agoJSTesting: make sure wrapSummaryHtml is given a valid state
Antoine Musso [Wed, 4 Jan 2012 10:31:02 +0000 (10:31 +0000)]
JSTesting: make sure wrapSummaryHtml is given a valid state

* wrapSummaryHTML() now really need one of three states or an exception
  is thrown.
* Moved a parameter incorrectly passed to addHtml() up to the previous
  wrapSummaryHtml() code. Per CR on r107919

12 years agoResourceLoaderTestModules doc: better wording
Antoine Musso [Wed, 4 Jan 2012 10:18:49 +0000 (10:18 +0000)]
ResourceLoaderTestModules doc: better wording

follow r107993

12 years agoMade WebInstaller::showStatusMessage() look uniformly for one and multiple errors...
Max Semenik [Wed, 4 Jan 2012 10:08:59 +0000 (10:08 +0000)]
Made WebInstaller::showStatusMessage() look uniformly for one and multiple errors/warnings per status

12 years agorevert r107006
Antoine Musso [Wed, 4 Jan 2012 09:08:16 +0000 (09:08 +0000)]
revert r107006

(bug 23427) Introduced {{PAGEID}} variable to expose page.page_id
[patch by Waldir]

12 years agoStylize.
Santhosh Thottingal [Wed, 4 Jan 2012 09:06:05 +0000 (09:06 +0000)]
Stylize.

12 years agosvn property on .svg file (follow r107940)
Antoine Musso [Wed, 4 Jan 2012 08:59:57 +0000 (08:59 +0000)]
svn property on .svg file (follow r107940)

12 years agoAddress an edge case - input being null. Add test cases.
Santhosh Thottingal [Wed, 4 Jan 2012 08:56:36 +0000 (08:56 +0000)]
Address an edge case - input being null. Add test cases.

12 years agoFollow-up r107376: disable test by default, causes failures in some configurations
Max Semenik [Wed, 4 Jan 2012 08:38:13 +0000 (08:38 +0000)]
Follow-up r107376: disable test by default, causes failures in some configurations

12 years agoTypos, casing. Still don't understand "'qunit' is feed using tests/qunit/QUnitTestRes...
Niklas Laxström [Wed, 4 Jan 2012 08:29:58 +0000 (08:29 +0000)]
Typos, casing. Still don't understand "'qunit' is feed using tests/qunit/QUnitTestResources.php"
Ping r107919

12 years agoFix for r107945: also partially revert r107842
Alexandre Emsenhuber [Wed, 4 Jan 2012 08:24:11 +0000 (08:24 +0000)]
Fix for r107945: also partially revert r107842

12 years ago* Updated rebuildImages.php per r106752.
Aaron Schulz [Wed, 4 Jan 2012 08:07:52 +0000 (08:07 +0000)]
* Updated rebuildImages.php per r106752.
* Also added FIXME about old call to bogus renameFile() function in rebuildImages.php.
* Added ContainerShardIterator class from r107980 to autoloader.
* Added a few FileBackend comments and improved FileRepo::enumFiles() comments.

12 years agoconsistency and clarification fixes for messages merged in r107919
Niklas Laxström [Wed, 4 Jan 2012 07:46:16 +0000 (07:46 +0000)]
consistency and clarification fixes for messages merged in r107919

12 years ago* Add typehint to debug Call to a member function getTitle() on a non-object in ...
Niklas Laxström [Wed, 4 Jan 2012 06:52:59 +0000 (06:52 +0000)]
* Add typehint to debug Call to a member function getTitle() on a non-object in /www/w/includes/EditPage.php on line 121
* Remove @todo from constructor, because it's a constructor
* Some typos and code style

12 years ago* Added FileBackendBase::getFileContents() function with a default FileBackend version.
Aaron Schulz [Wed, 4 Jan 2012 02:15:07 +0000 (02:15 +0000)]
* Added FileBackendBase::getFileContents() function with a default FileBackend version.
* Added read-only mode to FileBackendBase config.
* Moved FileBackendBase::getFileTimestamp() up slightly.

12 years ago[mediawiki.debug] display: inline-block; work-around for in IE7
Krinkle [Wed, 4 Jan 2012 01:29:39 +0000 (01:29 +0000)]
[mediawiki.debug] display: inline-block; work-around for in IE7
* display: inline-block; is not supported by IE7
* Using standard work-around with triggering hasLayout (via zoom: 1;) on an inline element (only for IE7 through *hack)

12 years ago[jquery.footHovzer] new plugin for mw-log-console and mw-debug-toolbar
Krinkle [Wed, 4 Jan 2012 01:28:01 +0000 (01:28 +0000)]
[jquery.footHovzer] new plugin for mw-log-console and mw-debug-toolbar
* Previously mw.log and mw.Debug both were in a fixed container on the bottom, overlapping each other. mw.log did increase the body's padding-bottom to account for the height so that all content is still visible, but it was still a problem when mw.Debug came along.
* This plugin adds a single fixed position element to bottom of the body, to which other stuff like mw.log and mw.Debug can append a non-fixed position container. That will take care of it.
* Method update() will re-check the padding and scroll position and fix where needed
* Reduces code a little bit

12 years ago* Added supported for container sharding via existing FileRepo-style hash paths....
Aaron Schulz [Wed, 4 Jan 2012 01:08:33 +0000 (01:08 +0000)]
* Added supported for container sharding via existing FileRepo-style hash paths. For sharded containers, all paths used to store files must be hashed appropriately (or the path will be rejected as invalid).
* Tweaked FileBackend::isValidContainerName() length check to give some head room for shard and segment container names.
* Updated FSFileBackend to use new resolveStoragePathReal() function for file paths.
* Removed useless cache invalidation in FileBackend::concatenateInternal().

12 years agoFix unused parameter from r107350
Krinkle [Wed, 4 Jan 2012 00:05:08 +0000 (00:05 +0000)]
Fix unused parameter from r107350
* /me is going to run JSLint again instead of JSHint, that would've caught this.

12 years agoFollowup r107954, rm debugging code
John Du Hart [Tue, 3 Jan 2012 23:52:15 +0000 (23:52 +0000)]
Followup r107954, rm debugging code

12 years agore Bug 31007 - rebuildrecentchanges.php fails for Postgresql with strings for integers
Mark A. Hershberger [Tue, 3 Jan 2012 23:42:15 +0000 (23:42 +0000)]
re Bug 31007 - rebuildrecentchanges.php fails for Postgresql with strings for integers
Authors: "Max" and Tim Landscheidt

Unquote 'null'

12 years agoFix regression in r107354: typo caused 'watch' link in Vector to never be hooked...
Brion Vibber [Tue, 3 Jan 2012 23:41:08 +0000 (23:41 +0000)]
Fix regression in r107354: typo caused 'watch' link in Vector to never be hooked up for ajax watch. :)

12 years agoFollowup r107862
John Du Hart [Tue, 3 Jan 2012 22:36:35 +0000 (22:36 +0000)]
Followup r107862

Fix bug that caused a PHP notice
Vertical-align:top on callers in the console

12 years agoRevert r107054: breaks execution of lines that might test or output '<?php' say when...
Brion Vibber [Tue, 3 Jan 2012 22:29:32 +0000 (22:29 +0000)]
Revert r107054: breaks execution of lines that might test or output '<?php' say when generating a PHP script
Is apparently meant to strip an initial line from PHP script files being piped in, but is insufficient to actually catch all cases.

12 years ago* Setting "javascripttest-backlink" message as ignored.
Rotem Liss [Tue, 3 Jan 2012 22:18:03 +0000 (22:18 +0000)]
* Setting "javascripttest-backlink" message as ignored.
* Adding special page alias to he.

12 years ago[JSTesting] Fix static html tests
Krinkle [Tue, 3 Jan 2012 22:16:24 +0000 (22:16 +0000)]
[JSTesting] Fix static html tests
* static tests need wgServer as well
* Follows-up r107946, r107919

12 years ago[JSTesting] Fix static html tests
Krinkle [Tue, 3 Jan 2012 21:53:23 +0000 (21:53 +0000)]
[JSTesting] Fix static html tests
* r107919 merge broke it as it removed all the inline mw.config calls, and the tearDown is resetting them to the initial values. That works fine on a MediaWiki page but on the static page are now no variables at all. Copying a basic sample to it. This should've been in the static test suite all along actually.
* Calculating wgScriptPath based on location.pathname instead of location.href, exclude wgServer
* Follows-up r107919

12 years agoRevert r107769, r107771, r107825, r107840, r107927, r107934
Brion Vibber [Tue, 3 Jan 2012 21:44:41 +0000 (21:44 +0000)]
Revert r107769, r107771, r107825, r107840, r107927, r107934

Title objects are meant to be dumb value objects; we shouldn't add to their internal state like this, but should be working to remove the bits already in there like the article ID.
Preloading information like this can make sense, but probably belongs in WikiPage, not Title.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 3 Jan 2012 21:22:22 +0000 (21:22 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRevert r107773 - increases parsercache fragmentation without clear benefit
Brion Vibber [Tue, 3 Jan 2012 21:20:35 +0000 (21:20 +0000)]
Revert r107773 - increases parsercache fragmentation without clear benefit

12 years agoPHPUnit test case for bug 31719 (followup r107793)
Brion Vibber [Tue, 3 Jan 2012 21:12:24 +0000 (21:12 +0000)]
PHPUnit test case for bug 31719 (followup r107793)

12 years agoAllow new checkbox on Special::Export to export all pages. See bug 10574.
Greg Sabino Mullane [Tue, 3 Jan 2012 21:08:32 +0000 (21:08 +0000)]
Allow new checkbox on Special::Export to export all pages. See bug 10574.

12 years agor107919: Register new message keys for maintenance scripts, as usual...
Raimond Spekking [Tue, 3 Jan 2012 20:33:35 +0000 (20:33 +0000)]
r107919: Register new message keys for maintenance scripts, as usual...

12 years agoPer Aaron, fix for r107771: Title::getTouched() should return false on non-existing...
Alexandre Emsenhuber [Tue, 3 Jan 2012 20:15:45 +0000 (20:15 +0000)]
Per Aaron, fix for r107771: Title::getTouched() should return false on non-existing page

12 years agoFix Bug 33384 - database drivers cannot be provided by extension
Mark A. Hershberger [Tue, 3 Jan 2012 19:55:45 +0000 (19:55 +0000)]
Fix Bug 33384 - database drivers cannot be provided by extension
Author: Adam Wight

Love the simplicity of this fix.

12 years agoFollowup r107882: explicitly say text() or parse() on wfMessage() calls!
Brion Vibber [Tue, 3 Jan 2012 19:44:58 +0000 (19:44 +0000)]
Followup r107882: explicitly say text() or parse() on wfMessage() calls!

12 years ago* Removed excess prepare() calls in initZones() - the batch functions already call...
Aaron Schulz [Tue, 3 Jan 2012 19:28:04 +0000 (19:28 +0000)]
* Removed excess prepare() calls in initZones() - the batch functions already call prepare on the target dirs.
* Tweaked call to secure() to align with what it actually does (it already makes the container private if possible).
* A few documentation tweaks.

12 years agoGive Title a decent loading mechanism:
Alexandre Emsenhuber [Tue, 3 Jan 2012 19:28:03 +0000 (19:28 +0000)]
Give Title a decent loading mechanism:
* Added Title::load() to factorise common code that load member variables instead of having each accessor doing it own loading system for its related member variable
* Removed usage of LinkCache::addLinkObj() to do the database query and do this directly in Title::load(). This allows to select the complete database row and populate all member variables; previously, requesting a field not stored in LinkCache (using getCount(), getTouched() or isNewPage()) results in two database query, one to load LinkCache data and the second to load the requested field; now there'll be only one query.
* Added Title::FIELD_IN_LINKCACHE and Title::FIELD_NOT_IN_LINKCACHE to specify whether the requested field is stored in LinkCache or not. LinkCache will be used if possible (i.e. Title::FIELD_IN_LINKCACHE is passed), otherwise a DB query to select the complete row is issued.
* Made Title::loadFromRow() save the row to LinkCache if possible.
* Added $wasFromMaster parameter to Title::loadFromRow() to tell that method whether the row was loaded from the master database or not and pass it from WikiPage::loadPageData()
* Added Title::GAID_USE_MASTER in addition to Title::GAID_FOR_UPDATE to get the row from the master database without having to do a SELECT FROM UPDATE query
* Added Title::selectFields() method to return the fields to select to given Title::loadFromRow() (and methods using it such as Title::newFromRow()) a complete row
* Made Title::$mCounter private since it has only been added recently (in r105790)
* Mark the object as loaded if Title::resetArticleID() is called with as new ID as 0

12 years agomerge JSTesting branch into trunk
Antoine Musso [Tue, 3 Jan 2012 18:33:26 +0000 (18:33 +0000)]
merge JSTesting branch into trunk

Changed written by Timo and reviewed by Hashar. This should be harmless.

To enable the feature:
  $wgEnableJavaScriptTest = true;

Then head to:
  [[Special:JavaScriptTest/qunit]]

12 years agoRemoved useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do...
Alexandre Emsenhuber [Tue, 3 Jan 2012 16:20:56 +0000 (16:20 +0000)]
Removed useless call to Title::getArticleID(); let WikiPage::doDeleteArticle() do this itself

12 years agoUpdate method signatures in FakeTitle to avoid E_STRICTs
Alexandre Emsenhuber [Tue, 3 Jan 2012 16:18:14 +0000 (16:18 +0000)]
Update method signatures in FakeTitle to avoid E_STRICTs

12 years ago* (bug 33483) One space to much in header of auto-generated documentation
Sam Reed [Tue, 3 Jan 2012 15:49:10 +0000 (15:49 +0000)]
* (bug 33483) One space to much in header of auto-generated documentation

12 years agoFixup some returns/return documentation
Sam Reed [Tue, 3 Jan 2012 15:36:46 +0000 (15:36 +0000)]
Fixup some returns/return documentation

12 years agoFix non reverted job_insert_timestamp
Sam Reed [Tue, 3 Jan 2012 15:14:35 +0000 (15:14 +0000)]
Fix non reverted job_insert_timestamp

Fixup timestamp addition per Roan

Ping r107886

12 years ago* (bug 27724) Add timestamp to job queue.
Sam Reed [Tue, 3 Jan 2012 15:08:05 +0000 (15:08 +0000)]
* (bug 27724) Add timestamp to job queue.

Designed for administration purposes, not to be exposed to front end users

Useful for administration purposes (like WMF with job runners), we can look at the "highest" jobs, and find out whether enwiki is just busy, or the jobs have been there a while (signalling that the job runners potentially have issues)

12 years agoFix gender on Special:Userrights
Antoine Musso [Tue, 3 Jan 2012 12:48:39 +0000 (12:48 +0000)]
Fix gender on Special:Userrights

r99312 added gender supports to group message. On Special:Userrights, messages
were not passed the username for GENDER support.

This patch update the French localisation as an example.

12 years agoremove useless gender for english group name
Antoine Musso [Tue, 3 Jan 2012 11:57:48 +0000 (11:57 +0000)]
remove useless gender for english group name

Follow r99312

12 years agoMissing check for ISMULTI on help parameters, thanks santhosh
John Du Hart [Tue, 3 Jan 2012 11:05:55 +0000 (11:05 +0000)]
Missing check for ISMULTI on help parameters, thanks santhosh

12 years agoBug 33482 - Api incorrectly calls ApiBase::parseMultiValue if allowed values is given...
John Du Hart [Tue, 3 Jan 2012 11:02:26 +0000 (11:02 +0000)]
Bug 33482 - Api incorrectly calls ApiBase::parseMultiValue if allowed values is given as an array

Simply means that if you have an array of acceptable values and you only accept one at a time, you can have pipes in the allowed values.

12 years agogit: add ignore file
Antoine Musso [Tue, 3 Jan 2012 09:55:41 +0000 (09:55 +0000)]
git: add ignore file

This is the same as the svn:ignore property with the addition of '.svn'

12 years agoFollow-up r107859: use the proper *Internal functions for doMoveInternal()
Aaron Schulz [Tue, 3 Jan 2012 06:37:55 +0000 (06:37 +0000)]
Follow-up r107859: use the proper *Internal functions for doMoveInternal()

12 years agoImplemented console panel in debug toolbar
John Du Hart [Tue, 3 Jan 2012 05:56:36 +0000 (05:56 +0000)]
Implemented console panel in debug toolbar

12 years agoUsing wfTime in place of microtime
John Du Hart [Tue, 3 Jan 2012 04:02:35 +0000 (04:02 +0000)]
Using wfTime in place of microtime

12 years agoAdd RequestContextCreateSkin hook to allow extensions to override the loading of...
Daniel Friesen [Tue, 3 Jan 2012 01:58:27 +0000 (01:58 +0000)]
Add RequestContextCreateSkin hook to allow extensions to override the loading of skins.

12 years agoUse FileOp when file exists ($this->backend has a null reference)
Markus Glaser [Tue, 3 Jan 2012 00:53:01 +0000 (00:53 +0000)]
Use FileOp when file exists ($this->backend has a null reference)

12 years ago* Fix for r107559: set $namespaceGenderAliases to an empty array in all languages...
Tim Starling [Mon, 2 Jan 2012 22:54:57 +0000 (22:54 +0000)]
* Fix for r107559: set $namespaceGenderAliases to an empty array in all languages with fallback=ru but with overridden namespaceNames, so that user namespaces don't get converted to Russian.
* Fix duplicated array keys from r107648.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 2 Jan 2012 20:46:12 +0000 (20:46 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRevert r107835 - breaks my wiki "unknown function'
Niklas Laxström [Mon, 2 Jan 2012 18:26:09 +0000 (18:26 +0000)]
Revert r107835 - breaks my wiki "unknown function'

12 years agoTypofix r107842
Niklas Laxström [Mon, 2 Jan 2012 18:22:26 +0000 (18:22 +0000)]
Typofix r107842

12 years ago* Removed WikiPage::$mTouched and use the value from Title; that member is not used...
Alexandre Emsenhuber [Mon, 2 Jan 2012 17:26:47 +0000 (17:26 +0000)]
* Removed WikiPage::$mTouched and use the value from Title; that member is not used anywhere else and is marked protected
* Fix some spaces and added description for WikiPage::$mTouched

12 years agoFix for r107825: forgot to change one instance of $oldFashionedRestrictions to $this...
Alexandre Emsenhuber [Mon, 2 Jan 2012 17:22:25 +0000 (17:22 +0000)]
Fix for r107825: forgot to change one instance of $oldFashionedRestrictions to $this->mOldRestrictions

12 years agoUse $wgUser instead of the User from the context in Article::view() and Article:...
Alexandre Emsenhuber [Mon, 2 Jan 2012 17:16:10 +0000 (17:16 +0000)]
Use $wgUser instead of the User from the context in Article::view() and Article::showDiffPage() for consistency

12 years agoremove an extra space
Chad Horohoe [Mon, 2 Jan 2012 15:34:35 +0000 (15:34 +0000)]
remove an extra  space

12 years agosimplify r107833 per CR, just use wfExpandUrl()
Chad Horohoe [Mon, 2 Jan 2012 15:31:28 +0000 (15:31 +0000)]
simplify r107833 per CR, just use wfExpandUrl()

12 years ago* follow up to r107673 - adding universal selector, because <thead> and <tfoot> are...
Danny B [Mon, 2 Jan 2012 14:58:11 +0000 (14:58 +0000)]
* follow up to r107673 - adding universal selector, because <thead> and <tfoot> are being eventually added as well

12 years agoRevert r107042 (bug 32219, make InstantCommons protocol-relative) and do it properly...
Chad Horohoe [Mon, 2 Jan 2012 14:38:19 +0000 (14:38 +0000)]
Revert r107042 (bug 32219, make InstantCommons protocol-relative) and do it properly + release notes.

apibase is used for fetching content from the server as well as determining description pages, so should use a full-qualified protocol when the site's in https.

12 years ago* Store the value of the page.page_restrictions field in Title::loadFromRow() and...
Alexandre Emsenhuber [Mon, 2 Jan 2012 12:49:50 +0000 (12:49 +0000)]
* Store the value of the page.page_restrictions field in Title::loadFromRow() and defers loading restrictions until when it's really needed; this reuses the Title::$mOldRestrictions member which is not used anywhere yet
* Removed $oldFashionedRestrictions parameter from Title::loadRestrictions*(); the only extension using it is LiquidThreads and it's using Title::newFromRow() to create the Title object, so the field is already cached (and this even allows to cache that field when there's no row for that page in the page_restrictions table)
* Also reset $mTouched and $mIsNew members on resetArticleId() calls
* Updated FakeTitle a bit

12 years agoParser can take mw.user too along with male, female for {{gender:$1|..}}
Santhosh Thottingal [Mon, 2 Jan 2012 12:21:34 +0000 (12:21 +0000)]
Parser can take mw.user too along with male, female for {{gender:$1|..}}
If the parameter passed is mw.user, use the gender from mw.user.options. If not, use the passed gender.
Update the qunit tests.
Update the documentation.
Followup r107811

12 years ago* Always set 'userjs' and 'userjsprev' items to false since they are now incorporated...
Alexandre Emsenhuber [Mon, 2 Jan 2012 12:19:24 +0000 (12:19 +0000)]
* Always set 'userjs' and 'userjsprev' items to false since they are now incorporated in 'bottomscript' (only affects skins not using OutputPage::headElement())
* Removed SkinTemplate::setupUserJs() since it's no longer used and marked OutputPage::isUserJsAllowed() for removal in 1.20 since its last call is now gone

12 years ago* Moved wfReportTime() call just before executing 'SkinTemplateOutputPageBeforeExec...
Alexandre Emsenhuber [Mon, 2 Jan 2012 12:04:51 +0000 (12:04 +0000)]
* Moved wfReportTime() call just before executing 'SkinTemplateOutputPageBeforeExec' hook to take into account remaining calls
* Group similar stuff
* Factorise calls to $this->getLanguage()
* Facrorise calls to $user->is(Anon|LoggedIn)()
* Changed the code that wraps 'subtitle' and 'undelete' items to be more readable

12 years agoUpdated comment since $wgArticle is going to be removed in 1.20.
Alexandre Emsenhuber [Mon, 2 Jan 2012 11:59:56 +0000 (11:59 +0000)]
Updated comment since $wgArticle is going to be removed in 1.20.

12 years agoFollow-up r107806 - More extensive tests for Language::sprintfDate. Including test...
Brian Wolff [Mon, 2 Jan 2012 10:41:58 +0000 (10:41 +0000)]
Follow-up r107806 - More extensive tests for Language::sprintfDate. Including test to make sure not affected by php timezone.

Also adds a small test for converting numerals (formatNum) in Arabic.

12 years agoMake mw.jqueryMsg understand gender.
Santhosh Thottingal [Mon, 2 Jan 2012 09:44:59 +0000 (09:44 +0000)]
Make mw.jqueryMsg understand gender.
Add qunit testcases.
Followup r107808

12 years agoUse strict comparison for length property.
Santhosh Thottingal [Mon, 2 Jan 2012 09:21:03 +0000 (09:21 +0000)]
Use strict comparison for length property.
Follow up r107808

12 years agoAdd gender support. This method is useful only if we have parser that can understand...
Santhosh Thottingal [Mon, 2 Jan 2012 09:08:23 +0000 (09:08 +0000)]
Add gender support. This method is useful only if we have parser that can understand gender at client side.
Test cases and mw.jqueryMsg changes in next commit.

12 years ago(Half of bug 33454) The week based year number (format char 'o') was being calculated...
Brian Wolff [Mon, 2 Jan 2012 08:20:03 +0000 (08:20 +0000)]
(Half of bug 33454) The week based year number (format char 'o') was being calculated based on server timezone instead of UTC in sprintfDate. [follow-up r45208]

This would cause a couple incorrect results on new years day.

12 years agoAdd qunit test for mediawiki.jqueryMsg.js- Initial version.
Santhosh Thottingal [Mon, 2 Jan 2012 06:47:58 +0000 (06:47 +0000)]
Add qunit test for mediawiki.jqueryMsg.js- Initial version.

12 years ago(bug 31719) Revert r107359 and apply a proper solution for entity expansion in SVGs.
Tim Starling [Mon, 2 Jan 2012 03:15:42 +0000 (03:15 +0000)]
(bug 31719) Revert r107359 and apply a proper solution for entity expansion in SVGs.

12 years agoCleanup a few unused variables
Sam Reed [Sun, 1 Jan 2012 23:35:08 +0000 (23:35 +0000)]
Cleanup a few unused variables

Mainly indexes in foreach loops

12 years agoFollowup r106752
Sam Reed [Sun, 1 Jan 2012 23:33:33 +0000 (23:33 +0000)]
Followup r106752

Use $file in unlink, rather than the undefined $path

12 years agoFollowup r99892, actually use $options in query
Sam Reed [Sun, 1 Jan 2012 23:31:20 +0000 (23:31 +0000)]
Followup r99892, actually use $options in query

12 years agoTidyup outputChunk added in r104687, remove/update documentation
Sam Reed [Sun, 1 Jan 2012 23:28:18 +0000 (23:28 +0000)]
Tidyup outputChunk added in r104687, remove/update documentation

Don't use undefined $path variable on line 265

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 1 Jan 2012 20:29:00 +0000 (20:29 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFix fixme on r107744 (though, I'm guessing r107743 is at fault, for not adding a...
Sam Reed [Sun, 1 Jan 2012 20:16:08 +0000 (20:16 +0000)]
Fix fixme on r107744 (though, I'm guessing r107743 is at fault, for not adding a blockcomment variable after adding it higher up in messages.inc