lhc/web/wiklou.git
12 years agoFix handling of qplimit/qpoffset and cachedtimestamp in QueryPage api module
Brian Wolff [Thu, 29 Sep 2011 15:16:35 +0000 (15:16 +0000)]
Fix handling of qplimit/qpoffset and cachedtimestamp in QueryPage api module

Basically api was thinking qplimit was the offset, and qpoffset was the limit. Also remove an extra ! when checking for the cached timestamp which was stopping the display of cachedtimestamp property in the api output.

I'm going to tag this 1.18 since this module was introduced in 1.18, and I assume we'd want to fix the limit/offset parameter before the wrong behaviour gets released and people depend on it, etc.

12 years agoPer Aaron, follow-up r93758: add coments and fix typos
Alexandre Emsenhuber [Thu, 29 Sep 2011 15:14:34 +0000 (15:14 +0000)]
Per Aaron, follow-up r93758: add coments and fix typos

12 years agoFollow-up r89568: use local context instead of $wgOut
Alexandre Emsenhuber [Thu, 29 Sep 2011 15:07:13 +0000 (15:07 +0000)]
Follow-up r89568: use local context instead of $wgOut

12 years agoHTMLFileCache refactoring:
Aaron Schulz [Thu, 29 Sep 2011 08:18:20 +0000 (08:18 +0000)]
HTMLFileCache refactoring:
* Rewrote class and split into three classes: a base class, and html cache and a more generic cache to be used later.
* The new classes now use RequestContext.
* Renamed fetchPageText() -> fetchText().
* Split out new saveText() function from saveToFileCache().
* Various other cleanups and fixes.
Also fixed backwards setting of $wgDisableCounters in rebuildFileCache.php.

12 years agoclean up Html::inlineScript usage
Krinkle [Wed, 28 Sep 2011 22:47:05 +0000 (22:47 +0000)]
clean up Html::inlineScript usage
* ResourceLoader::makeLoaderConditionalScript:
-- window.mediaWiki -> window.mw; Not just because it's shorter but because that's the variable that is actually being used inside the script.
* ProtectionForm::buildCleanupScript
-- Use a single quote string and no new line
-- Use ResourceLoader::makeLoaderConditionalScript instead of duplicating this logic everywhere
* ProtectionForm::buildCleanupScript:
-- Use Xml::encodeJsCall to render javascript code
-- Use ResourceLoader::makeLoaderConditionalScript
-- Fix bug 31230 by using the new OutputPage->addJsConfigVars( r98374 )
(had to use $wgOut for now since there wasn't an obvious route to a context that I could find here (Article has context, but ProtectionForm::__construct takes any WikiPage, not just Article)
* EditPage::getEditToolbar:
-- Use Xml::encodeJsCall
-- Use ResourceLoader::makeLoaderConditionalScript

Fixes:
* (bug 31230) ProtectionForm should set wgCascadeableLevels in mw.confg instead of globally

12 years agoNew OutputPage::addJsConfigVars() method (bug 31233)
Krinkle [Wed, 28 Sep 2011 22:08:08 +0000 (22:08 +0000)]
New OutputPage::addJsConfigVars() method (bug 31233)
* to make the output page specific mw.config map extendable.
* fixes (bug 31233) Make OutputPage's mw.config array extendable internally instead of hard coded
* fixes weird unfinished comment from r61690

12 years agoshared.css clean up:
Krinkle [Wed, 28 Sep 2011 22:00:51 +0000 (22:00 +0000)]
shared.css clean up:
* Use background-color instead of background when possible (to support cascading rules and don't reset the entire thing)
* no parens around url()

12 years agoinexisting -> inexistent (typo)
Krinkle [Wed, 28 Sep 2011 20:33:27 +0000 (20:33 +0000)]
inexisting -> inexistent (typo)
* tests/qunit
* resources/mediawiki

12 years agoFollowup r98135
Niklas Laxström [Wed, 28 Sep 2011 20:28:40 +0000 (20:28 +0000)]
Followup r98135
* Added gender parameter to newuserlog-create2-entry
* Hide old comments (for all log types!)
* logentry-newusers-newusers needs a message after all
* Move user tool links away from the action links and drop the User: prefix from create2

12 years agoFollowup r98339, r98355
Sam Reed [Wed, 28 Sep 2011 19:38:34 +0000 (19:38 +0000)]
Followup r98339, r98355

Let's pretend the column never existed

12 years agoFollowup r98339
Sam Reed [Wed, 28 Sep 2011 19:28:19 +0000 (19:28 +0000)]
Followup r98339

Don't try and remove the user_options column in SQLite

Added 'user.user_options' to ignores

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Wed, 28 Sep 2011 19:22:19 +0000 (19:22 +0000)]
* Use local context instead of global variables
* Call Linker methods statically

12 years agoRelease notes for r98253
Robin Pepermans [Wed, 28 Sep 2011 19:02:13 +0000 (19:02 +0000)]
Release notes for r98253

12 years agoFollowup r98339
Sam Reed [Wed, 28 Sep 2011 18:19:57 +0000 (18:19 +0000)]
Followup r98339

Add RELEASE-NOTES-1.19

Fix runChild in DatabaseUpdater.php

12 years ago* (bug 31204) Remove old user.user_options
Sam Reed [Wed, 28 Sep 2011 18:08:48 +0000 (18:08 +0000)]
* (bug 31204) Remove old user.user_options

Added run of ConvertUserOptions maintenance script into update.php before dropping the column

Removed usages of user_options in code

Marked User::decodeOptions() deprecated as of 1.19.

Made ConvertUserOptions drop out early if the user_options field doesn't exist

Made ConvertUserOptions update user_options to '' after migration of user options to mOptions

12 years agoFollowup r98329
Sam Reed [Wed, 28 Sep 2011 17:01:53 +0000 (17:01 +0000)]
Followup r98329

Change ApiQueryInfo to match also

12 years agoFix whitespace
Sam Reed [Wed, 28 Sep 2011 16:37:27 +0000 (16:37 +0000)]
Fix whitespace

12 years agoBug 31199 - Fix notification of implicit groups so it doesn't massively change json...
Sam Reed [Wed, 28 Sep 2011 16:36:17 +0000 (16:36 +0000)]
Bug 31199 - Fix notification of implicit groups so it doesn't massively change json output

Needs merging to 1.18, 1.18wmf1 and pushing to site

12 years ago(bug 31206) "Altering blocks doesn't appear to be working". Don't compare string...
Aaron Schulz [Wed, 28 Sep 2011 01:28:29 +0000 (01:28 +0000)]
(bug 31206) "Altering blocks doesn't appear to be working". Don't compare string to User objects :)

12 years ago(bug 31194) Add linkTrail for Northern Sami.
Siebrand Mazeland [Wed, 28 Sep 2011 01:07:55 +0000 (01:07 +0000)]
(bug 31194) Add linkTrail for Northern Sami.

12 years ago* (bug 31187) Fix for user JavaScript validation to allow identifiers with valid...
Brion Vibber [Tue, 27 Sep 2011 22:51:36 +0000 (22:51 +0000)]
* (bug 31187) Fix for user JavaScript validation to allow identifiers with valid Unicode letter characters

Followup r91591, r93020: patch to jsminplus to support Unicode chars and char escapes in identifiers

Fast-path check keeps runtime about the same on most scripts (eg jquery.js parsing was abround 4100ms both before and after on my test machine)
Slow-path code kicks in if plain ASCII word chars don't extend all the way to the next whitespace or punctuation char.
Using PCRE's Unicode properties magic to ensure that we're catching everything, following ECMA-262 edition 5.1 spec.

Note that identifiers using escapes don't get normalized to their UTF-8 form; this might be a nice thing to do as it saves a couple bytes, but currently there's no change made to output.

Added QUnit tests to verify that unicode letter & escapes work in identifiers in all supported browsers (ok back to IE 6, yay)

12 years ago(bug 31193) Set fallback language of Assamese from Bengali to English
Robin Pepermans [Tue, 27 Sep 2011 21:00:38 +0000 (21:00 +0000)]
(bug 31193) Set fallback language of Assamese from Bengali to English

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 27 Sep 2011 19:58:34 +0000 (19:58 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago(bug 31191) Followup to r90934: do this in the successful login code path too. The...
Roan Kattouw [Tue, 27 Sep 2011 19:21:53 +0000 (19:21 +0000)]
(bug 31191) Followup to r90934: do this in the successful login code path too. The bug didn't surface in most cases because the user is redirected immediately after a successful login, except when CentralAuth stops that from happening.

12 years agoAlso add $wgRequest to the forbidden globals...thought it was common sense.
Chad Horohoe [Tue, 27 Sep 2011 18:56:44 +0000 (18:56 +0000)]
Also add $wgRequest to the forbidden globals...thought it was common sense.

12 years ago(bug 31088) [Regression] "Create account/log in" should use the current title and...
Aaron Schulz [Tue, 27 Sep 2011 18:55:15 +0000 (18:55 +0000)]
(bug 31088) [Regression] "Create account/log in" should use the current title and query in returnto

12 years agoFix character access
Sam Reed [Tue, 27 Sep 2011 16:15:29 +0000 (16:15 +0000)]
Fix character access

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Tue, 27 Sep 2011 15:13:37 +0000 (15:13 +0000)]
* Use local context instead of global variables
* Call Linker methods statically
* Changed link to Special:Whatlinkshere on Special:Mostlinkedtemplates to pass the page in the subpage parameter instead of "target" to match Special:Mostlinked's behaviour

12 years agoPer OverlordQ, fix for r87164: let's use an aggregate function that exists in postgresql
Alexandre Emsenhuber [Tue, 27 Sep 2011 14:47:42 +0000 (14:47 +0000)]
Per OverlordQ, fix for r87164: let's use an aggregate function that exists in postgresql

12 years agoFollowup r98210; Add an ugly hack to support old extensions using the SkinTemplateToo...
Daniel Friesen [Tue, 27 Sep 2011 07:58:23 +0000 (07:58 +0000)]
Followup r98210; Add an ugly hack to support old extensions using the SkinTemplateToolboxEnd hook, erm... 'thanks' Tim.
((Also fix an extra htmlspecialchars that shouldn't have been there))

12 years agoImproved filecache short-circuit slightly (catching NS_MEDIA and such)
Aaron Schulz [Tue, 27 Sep 2011 06:45:58 +0000 (06:45 +0000)]
Improved filecache short-circuit slightly (catching NS_MEDIA and such)

12 years agoAdd getSidebar method to BaseTemplate to simplify the sidebar boilerplate.
Daniel Friesen [Tue, 27 Sep 2011 05:31:57 +0000 (05:31 +0000)]
Add getSidebar method to BaseTemplate to simplify the sidebar boilerplate.

12 years agoDebug logging and possible fix for bug 31177: mystery sidebar message failures
Brion Vibber [Tue, 27 Sep 2011 00:41:24 +0000 (00:41 +0000)]
Debug logging and possible fix for bug 31177: mystery sidebar message failures

This may be related to things failing on load from External Storage; however we have not yet been able to verify this.

Tweaks MessageCache::loadFromDB() and MessageCache::getMsgFromNamespace() to avoid storing empty cache entries when loading text fails.
When building initial cache if we get a failure we'll log and store a '!TOO BIG' message which requests on-demand load later.
If an on-demand load failures, we'll log and return the false through but won't update the cache with the bad value.

To enable the logging in production, set up a $wgDebugLogFiles entry for 'MessageCache'.

Note that MessageCache::loadFromDB() bypasses Revision's text entry memcaching and may cause a lot of ES fetches at once.
However any ES failures *should* already be logged in the 'ExternalStoreDB' log file.

12 years agoFix stupid typo in r98193, thanks Dantman
Roan Kattouw [Mon, 26 Sep 2011 23:16:32 +0000 (23:16 +0000)]
Fix stupid typo in r98193, thanks Dantman

12 years ago(bug 31176) {{SERVERNAME}} doesn't play nice with protocol-relative URLs
Roan Kattouw [Mon, 26 Sep 2011 23:14:20 +0000 (23:14 +0000)]
(bug 31176) {{SERVERNAME}} doesn't play nice with protocol-relative URLs

12 years agoFU r98109: !EMPTY -> !NONEXISTENT (more consistent with elsewhere)
Aaron Schulz [Mon, 26 Sep 2011 22:46:40 +0000 (22:46 +0000)]
FU r98109: !EMPTY -> !NONEXISTENT (more consistent with elsewhere)

12 years agoRemove italic styling for .mw-specialpagecached (See r83554 CR)
Krinkle [Mon, 26 Sep 2011 22:13:57 +0000 (22:13 +0000)]
Remove italic styling for .mw-specialpagecached (See r83554 CR)
* Partially reverts r83554
* Was moved into mediawiki.special.css in r83789

12 years agoreverting r98172 by popular demand
Ryan Kaldari [Mon, 26 Sep 2011 21:49:00 +0000 (21:49 +0000)]
reverting r98172 by popular demand

12 years agoadding an obvious alias that is much easier to remember: Prefixindex => Subpages
Ryan Kaldari [Mon, 26 Sep 2011 21:07:24 +0000 (21:07 +0000)]
adding an obvious alias that is much easier to remember: Prefixindex => Subpages

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 26 Sep 2011 20:30:18 +0000 (20:30 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFollowup to r97342 to remove the now-unneeded checks for empty username & to add...
Sean Colombo [Mon, 26 Sep 2011 18:49:47 +0000 (18:49 +0000)]
Followup to r97342 to remove the now-unneeded checks for empty username & to add some spaces ;)

12 years agoFix ignored message key (r98135)
Raimond Spekking [Mon, 26 Sep 2011 16:00:11 +0000 (16:00 +0000)]
Fix ignored message key (r98135)

12 years agoConverted display part of new user log to new system
Niklas Laxström [Mon, 26 Sep 2011 15:12:44 +0000 (15:12 +0000)]
Converted display part of new user log to new system

12 years agoLocalization update for he.
Rotem Liss [Mon, 26 Sep 2011 13:10:50 +0000 (13:10 +0000)]
Localization update for he.

12 years ago* Call Linker methods statically
Alexandre Emsenhuber [Mon, 26 Sep 2011 11:33:30 +0000 (11:33 +0000)]
* Call Linker methods statically
* Use local context instead of global variables

12 years agoAdd mediawiki.language/languages/nl.js and mediawiki.language/languages/pt.js
Santhosh Thottingal [Mon, 26 Sep 2011 06:08:46 +0000 (06:08 +0000)]
Add mediawiki.language/languages/nl.js and mediawiki.language/languages/pt.js

12 years agoAdd digitTransformTable for pt, pt-br and nl
Santhosh Thottingal [Mon, 26 Sep 2011 05:23:50 +0000 (05:23 +0000)]
Add digitTransformTable for pt, pt-br and nl

12 years agoCache negative results for interwiki prefix checks. Also helps filecache fail-over...
Aaron Schulz [Mon, 26 Sep 2011 03:37:20 +0000 (03:37 +0000)]
Cache negative results for interwiki prefix checks. Also helps filecache fail-over mode if DB is down.

12 years agoFollowup r98056; Add to this screwed up NewParserTest phpunit stuff as well.
Daniel Friesen [Mon, 26 Sep 2011 02:04:17 +0000 (02:04 +0000)]
Followup r98056; Add to this screwed up NewParserTest phpunit stuff as well.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 25 Sep 2011 19:40:13 +0000 (19:40 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoemail -> e-mail for consistency
Raimond Spekking [Sun, 25 Sep 2011 18:43:57 +0000 (18:43 +0000)]
email -> e-mail for consistency

12 years agoRaise the specificity of the sortable header.
Derk-Jan Hartman [Sun, 25 Sep 2011 17:26:33 +0000 (17:26 +0000)]
Raise the specificity of the sortable header.
Many installations have something like: table.wikitable th {background:color;} which would override the background of the sortable header.

12 years agoTalk page links were bluelinks if the root page existed instead of the subpage (i...
Robin Pepermans [Sun, 25 Sep 2011 16:32:15 +0000 (16:32 +0000)]
Talk page links were bluelinks if the root page existed instead of the subpage (i.e. a link to MediaWiki talk:Xyz/nl was blue if MediaWiki talk:Xyz existed). This is present in at least MW 1.16 - now.

12 years agoSimplify things by using wfMessage() instead of wfMsg() et al.
Alexandre Emsenhuber [Sun, 25 Sep 2011 14:38:54 +0000 (14:38 +0000)]
Simplify things by using wfMessage() instead of wfMsg() et al.

12 years agoFollow-up r96958: forgot one use of $wgUser
Alexandre Emsenhuber [Sun, 25 Sep 2011 10:14:42 +0000 (10:14 +0000)]
Follow-up r96958: forgot one use of $wgUser

12 years agoFollowup r98053; Add $wgCleanupPresentationalAttributes to the globals setup so that...
Daniel Friesen [Sun, 25 Sep 2011 04:35:25 +0000 (04:35 +0000)]
Followup r98053; Add $wgCleanupPresentationalAttributes to the globals setup so that tests are always run with it on.

12 years agoFollowup r94465 and r94465; Add phpunit tests for Sanitizer::fixDeprecatedAttributes...
Daniel Friesen [Sun, 25 Sep 2011 04:08:23 +0000 (04:08 +0000)]
Followup r94465 and r94465; Add phpunit tests for Sanitizer::fixDeprecatedAttributes and fix bugs related to clear="all" and mixed/uppercase attributes and values.

12 years agoFollowup r94465; Add parser tests and turn the feature on-by-default like I intended...
Daniel Friesen [Sun, 25 Sep 2011 02:58:03 +0000 (02:58 +0000)]
Followup r94465; Add parser tests and turn the feature on-by-default like I intended for it (I guess I forgot to return it to true when I was testing it as off)

12 years agoFollowup r94465; Release notes.
Daniel Friesen [Sun, 25 Sep 2011 02:27:10 +0000 (02:27 +0000)]
Followup r94465; Release notes.

12 years agoFollowup r94465; Don't use empty.
Daniel Friesen [Sun, 25 Sep 2011 02:24:47 +0000 (02:24 +0000)]
Followup r94465; Don't use empty.

12 years agoFollowup r96717; Fix whitespace.
Daniel Friesen [Sun, 25 Sep 2011 02:09:42 +0000 (02:09 +0000)]
Followup r96717; Fix whitespace.

12 years agoRelease notes for my common*.css improvements.
Daniel Friesen [Sun, 25 Sep 2011 02:06:58 +0000 (02:06 +0000)]
Release notes for my common*.css improvements.

12 years agoFollowup r98045, release notes.
Daniel Friesen [Sun, 25 Sep 2011 02:03:40 +0000 (02:03 +0000)]
Followup r98045, release notes.

12 years agoImprove the accessibility of our jump-to functionality
Daniel Friesen [Sun, 25 Sep 2011 00:49:39 +0000 (00:49 +0000)]
Improve the accessibility of our jump-to functionality
- Stop hiding with display: none;, this hides our jump links from modern screen readers and users with motor disabilities (ie: nowadays, pratically everyone they are intended to help).
- Instead hide with an overflow that will make the links viable <tab> targets. This alone is enough to help screen reader users.
- Add in a script that will show the jump-links area on-focus for motor-impared users who can still see who have js enabled (this can't be done with css unfortunately)

12 years agoFU r98029 - message documentation.
Happy-melon [Sat, 24 Sep 2011 21:37:03 +0000 (21:37 +0000)]
FU r98029 - message documentation.

12 years agoArticle refactoring and changes for bug 31144. Dependency inject ParserOutput objects...
Aaron Schulz [Sat, 24 Sep 2011 21:12:26 +0000 (21:12 +0000)]
Article refactoring and changes for bug 31144. Dependency inject ParserOutput objects in some places and let hooks set $outputDone as the parser output used.

12 years ago(bug 30636) integrate the remaining functionality of the PasswordReset extension...
Happy-melon [Sat, 24 Sep 2011 21:11:41 +0000 (21:11 +0000)]
(bug 30636) integrate the remaining functionality of the PasswordReset extension into core, to make the fact that its Special:PasswordReset conflicts (as of 1.18) with the new core special page of the same name no longer relevant.

The extension just allows admins with the 'passwordreset' permission to arbitrarily change other users' passwords, which is really scary.  This core change uses the same permission, but instead gives them the ability to view the password reset email that would be sent to another user.  So they can record the temporary password, and give it to the user via a medium other than email; but when the user logs in with it they will be forced to change it and the admin will no longer know what it is.

It would be nice to log these viewing actions, but I'm not sure which log it should go into, or whether it's worth creating a new one just for this (rare and disabled-by-default) action.

12 years agoUse local context instead of global variables
Alexandre Emsenhuber [Sat, 24 Sep 2011 21:10:08 +0000 (21:10 +0000)]
Use local context instead of global variables

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 24 Sep 2011 20:11:56 +0000 (20:11 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago* restore DB connection after unserialization. This is needed in all DB variants...
Markus Glaser [Sat, 24 Sep 2011 20:07:21 +0000 (20:07 +0000)]
* restore DB connection after unserialization. This is needed in all DB variants safe for MySQL. Found when running PagedTiffHandler Selenium tests on Postgres. Credits to Dan Nessett.

12 years agoMinor cleanup and line breaking to formatTimePeriod()
Aaron Schulz [Sat, 24 Sep 2011 17:55:34 +0000 (17:55 +0000)]
Minor cleanup and line breaking to formatTimePeriod()

12 years agoAllow LogEventsList::showLogExtract() to get a Title object instead of having to...
Alexandre Emsenhuber [Sat, 24 Sep 2011 17:52:53 +0000 (17:52 +0000)]
Allow LogEventsList::showLogExtract() to get a Title object instead of having to do Title -> string -> Title conversion

12 years agoPer CR on r97962, introduce an array parameter for formatTimePeriod() rather than...
Roan Kattouw [Sat, 24 Sep 2011 15:44:43 +0000 (15:44 +0000)]
Per CR on r97962, introduce an array parameter for formatTimePeriod() rather than adding more boolean params.

12 years agoFollowup r97962: add qqq for new messages, and expand it for the -abbrev messages.
Roan Kattouw [Sat, 24 Sep 2011 15:24:13 +0000 (15:24 +0000)]
Followup r97962: add qqq for new messages, and expand it for the -abbrev messages.

12 years agoRegister new message keys from r97962
Raimond Spekking [Sat, 24 Sep 2011 06:13:43 +0000 (06:13 +0000)]
Register new message keys from r97962

12 years agoAdded filecache support for history pages
Aaron Schulz [Sat, 24 Sep 2011 01:17:04 +0000 (01:17 +0000)]
Added filecache support for history pages

12 years agoFU r97978: removed more raw page file cache code
Aaron Schulz [Sat, 24 Sep 2011 00:55:49 +0000 (00:55 +0000)]
FU r97978: removed more raw page file cache code

12 years agoRemoved action=raw support from HTMLFileCache. Obsolete due to RL.
Aaron Schulz [Sat, 24 Sep 2011 00:37:11 +0000 (00:37 +0000)]
Removed action=raw support from HTMLFileCache. Obsolete due to RL.

12 years agoFollowup r97954: fix unit tests for wfShellMaintenanceCmd() to work on Unix as well...
Brion Vibber [Fri, 23 Sep 2011 22:17:41 +0000 (22:17 +0000)]
Followup r97954: fix unit tests for wfShellMaintenanceCmd() to work on Unix as well as Windows

12 years agoMake Language::formatTimePeriod() more flexible so it can produce stuff like '3 hours...
Roan Kattouw [Fri, 23 Sep 2011 22:17:10 +0000 (22:17 +0000)]
Make Language::formatTimePeriod() more flexible so it can produce stuff like '3 hours ago'.

* Add a $noAbbrevs parameter that causes the 'seconds', 'minutes', etc. messages to be used instead of the 'seconds-abbrev', 'minutes-abbrev', etc. messages
* Add the 'seconds', 'minutes', 'hours' and 'days' messages
* Change the -abbrev messages to take a parameter rather than having the number prepended to them. This is for compatibility with 'seconds' et al, which need the parameter for {{PLURAL:}}. It also generally makes more sense. This does BREAK the messages in non-English languages that override them; Niklas told me to leave this alone and ping the TranslateWiki folks
* Introduce an 'ago' message for '$1 ago'. Not currently used in core, but I want to use it in an extension and it seemed stupid not to have such a thing in core.
* Refactor the function to use message objects and pass the number as a parameter
* Add tests! They exposed a subtle bug in my first iteration; all hail tests!

12 years agoRewrite testFormatTimePeriod() with a data provider
Roan Kattouw [Fri, 23 Sep 2011 22:02:36 +0000 (22:02 +0000)]
Rewrite testFormatTimePeriod() with a data provider

12 years agoAdded wfShellMaintenanceCmd() for Het Deploy support
Aaron Schulz [Fri, 23 Sep 2011 20:42:22 +0000 (20:42 +0000)]
Added wfShellMaintenanceCmd() for Het Deploy support

12 years agoFix single character access
Sam Reed [Fri, 23 Sep 2011 20:20:41 +0000 (20:20 +0000)]
Fix single character access

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 23 Sep 2011 20:09:54 +0000 (20:09 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoGod. Damn. You. Php.
Sam Reed [Fri, 23 Sep 2011 18:01:40 +0000 (18:01 +0000)]
God. Damn. You. Php.

Followup r97919

12 years agoUse local context instead of global variables
Alexandre Emsenhuber [Fri, 23 Sep 2011 17:21:08 +0000 (17:21 +0000)]
Use local context instead of global variables

12 years ago* Call Linker methods statically
Alexandre Emsenhuber [Fri, 23 Sep 2011 16:15:30 +0000 (16:15 +0000)]
* Call Linker methods statically
* Moved wfReadOnly() check after permissions so that users don't think the error is temporary if they and don't have permissions and the database is locked
* Removed "unexpected value of 'oldimage'" message which seems to say there's an internal error somewhere instead that the oldimage parameter is not in correct format

12 years agoMostly revert r97328
Sam Reed [Fri, 23 Sep 2011 14:14:55 +0000 (14:14 +0000)]
Mostly revert r97328

Swap substring to be done on smaller (more correct) values

12 years agoFactorise calls to $this->getSkin()->getUser() in SkinCologneBlue::quickBar(); also...
Alexandre Emsenhuber [Fri, 23 Sep 2011 12:55:01 +0000 (12:55 +0000)]
Factorise calls to $this->getSkin()->getUser() in SkinCologneBlue::quickBar(); also moved the call $this->getSkin()->getTitle() near the only place where it's used

12 years agoadd mwscript handling for call of fetchText.php maintenance script
Ariel Glenn [Fri, 23 Sep 2011 07:48:30 +0000 (07:48 +0000)]
add mwscript handling for call of fetchText.php maintenance script

12 years agohandle naming checkpoint file with first/last pageID when the file is empty
Ariel Glenn [Fri, 23 Sep 2011 06:15:20 +0000 (06:15 +0000)]
handle naming checkpoint file with first/last pageID when the file is empty

12 years agoRarrgh
Sam Reed [Thu, 22 Sep 2011 23:53:37 +0000 (23:53 +0000)]
Rarrgh

Swapping " for ' doesn't make it en-gb

Deleted also on TW

12 years ago* (bug 31089) Fix regression in Special:Block reasons list (MediaWiki:Ipbreason-dropd...
Brion Vibber [Thu, 22 Sep 2011 22:10:41 +0000 (22:10 +0000)]
* (bug 31089) Fix regression in Special:Block reasons list (MediaWiki:Ipbreason-dropdown parsing)

Followup to r83298: makes HTMLSelectAndOtherField backwards-compatible with Xml::listDropDown as it was apparently intended to be.

Also fixed double-escaping in the options for HTMLSelectAndOtherField.

Followup to r83795: fixes regression in Special:Block by fixing HTMLSelectAndOtherField which got used in place of Xml::listDropDown, but wasn't compatible.

Note that this removes the clever thing that lets you have separate values and texts in your dropdown; since Xml::listDropDown had no such feature and actual usage includes texts containing links and other stuch where the pipe character is a legit part of the content.

12 years ago* (bug 31100) Fix regression in sidebar (special: page links lost parameters)
Brion Vibber [Thu, 22 Sep 2011 21:35:24 +0000 (21:35 +0000)]
* (bug 31100) Fix regression in sidebar (special: page links lost parameters)

Regression in Title::fixSpecialName() in r86255; fixed and added a unit test case to TitleTest.

12 years agorv r97851 for further inspection, causes PHP notices
Niklas Laxström [Thu, 22 Sep 2011 21:27:04 +0000 (21:27 +0000)]
rv r97851 for further inspection, causes PHP notices

12 years agoFU r95640: documentation for message change. Also replace a deprecated <font> elemen...
Happy-melon [Thu, 22 Sep 2011 21:06:55 +0000 (21:06 +0000)]
FU r95640: documentation for message change.  Also replace a deprecated <font> element that my IDE complained about.

12 years agofollowup r79862: the for loop only cleans up half the output handlers (since $i count...
Ilmari Karonen [Thu, 22 Sep 2011 20:44:05 +0000 (20:44 +0000)]
followup r79862: the for loop only cleans up half the output handlers (since $i counts up while ob_get_level() counts down); check the return value of ob_end_clean() instead.
(I just noticed this while eyeballing the code -- apparently most people don't have multiple output handlers active, given that nobody had caught this in over eight months.)

12 years agoRe-do r96798 ("LanguageConverter now depends on the page content language"), without...
Robin Pepermans [Thu, 22 Sep 2011 20:31:23 +0000 (20:31 +0000)]
Re-do r96798 ("LanguageConverter now depends on the page content language"), without the change in WikiPage which caused an infinite loop (see bug 31098)

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 22 Sep 2011 19:48:56 +0000 (19:48 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoPer Aaron, fix for r97658: removed double call to parent constructor that will also...
Alexandre Emsenhuber [Thu, 22 Sep 2011 19:15:25 +0000 (19:15 +0000)]
Per Aaron, fix for r97658: removed double call to parent constructor that will also fix the E_NOTICE