Sam Reed [Thu, 1 Dec 2011 00:24:22 +0000 (00:24 +0000)]
Another artefact of the disable account merge
Remove disableaccount userright from core
Brion Vibber [Wed, 30 Nov 2011 23:17:19 +0000 (23:17 +0000)]
* (bug 4901) lang, hreflang attributes added to sidebar interlanguage links
The lang attribute assists screen readers in reading out the language name correctly; see sample recordings from iOS's VoiceOver reader mode attached on <https://bugzilla.wikimedia.org/show_bug.cgi?id=4901>
hreflang attribute is less clearly useful, but may assist some tools in indicating the language of the destination site.
Inline interwiki links have not been changed.
Release notes will be added on 1.18 channel, this is an old bug fix and easy to backport.
Platonides [Wed, 30 Nov 2011 23:06:18 +0000 (23:06 +0000)]
Unused $wgParser. Fix comment
Roan Kattouw [Wed, 30 Nov 2011 22:48:10 +0000 (22:48 +0000)]
Fix notice in r104684
Brion Vibber [Wed, 30 Nov 2011 22:38:39 +0000 (22:38 +0000)]
* (bug 16434) Fix paging on Special:Prefixindex when prefix is empty (whole namespace).
Tweaked input handling to make sure the 'from' => 'prefix' mapping doesn't happen if we have passed a namespace parameter (indicating we're working within the form). Tweaked the form paging links to include the NS even if it's 0. :)
Originally wanted to just check for presence of 'prefix' however wfArrayToCgi() strips empty values, and I'm not comfortable tweaking that without a lot more testing.
Raimond Spekking [Wed, 30 Nov 2011 20:59:10 +0000 (20:59 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Roan Kattouw [Wed, 30 Nov 2011 20:03:34 +0000 (20:03 +0000)]
Add RefreshLinks class to the AutoLoader, I'll need it for my cleanup script for bug 31576
Jan Gerber [Wed, 30 Nov 2011 15:58:16 +0000 (15:58 +0000)]
add concatenate no-op to ForeignAPIRepo.php
Follow up r104687
Jan Gerber [Wed, 30 Nov 2011 15:24:27 +0000 (15:24 +0000)]
Fix DatabaseSqliteTest for db changes for chunk support.
follow up 104687
Daniel Friesen [Wed, 30 Nov 2011 15:12:19 +0000 (15:12 +0000)]
Followup r104688, reintroduce the full PathRouter code now that the bug with url encoded paths is fixed.
Daniel Friesen [Wed, 30 Nov 2011 15:09:08 +0000 (15:09 +0000)]
Followup r104274, r104676. Fix the bug that broke fr. Forgot to rawurldecode path contents.
Also add /u just for sanity sake.
Add new tests for url encoding, unicode, and length edge cases.
Jan Gerber [Wed, 30 Nov 2011 14:56:40 +0000 (14:56 +0000)]
Use database to track uploaded chunks and concatenate at the end.
with i18n documentation dont break phpunit
follow up r93720
Roan Kattouw [Wed, 30 Nov 2011 14:56:28 +0000 (14:56 +0000)]
RELEASE-NOTES for r104668, r104671, r104684
Roan Kattouw [Wed, 30 Nov 2011 14:51:07 +0000 (14:51 +0000)]
)bug 15521) Use new section summary when the action of adding a new section also happens to create the page. Patch by Harry Burt
Roan Kattouw [Wed, 30 Nov 2011 13:54:35 +0000 (13:54 +0000)]
Revert r104659 and its followup r104665: break the unit tests with a fatal error. This cripples our CI system, we can't detect new failures this way.
Daniel Friesen [Wed, 30 Nov 2011 13:37:22 +0000 (13:37 +0000)]
Recommit PathRouter code from r104274, r104284, r104285 without the WebRequest.php and hooks.txt code so we can start to add tests and fix the bug in it.
Roan Kattouw [Wed, 30 Nov 2011 13:16:18 +0000 (13:16 +0000)]
(bug 31212) History tab not collapsed when the screen is narrow. Patch by Michael M
Roan Kattouw [Wed, 30 Nov 2011 12:43:10 +0000 (12:43 +0000)]
(bug 32230) Expose wgRedirectedFrom (title of the page we were redirected from, if any) in JavaScript. Patch by MrBlueSky
Jan Gerber [Wed, 30 Nov 2011 12:13:11 +0000 (12:13 +0000)]
add i18n#Message_documentation for the newly added messages and add entry to messages.inc
follow up r104659
Jan Gerber [Wed, 30 Nov 2011 08:55:16 +0000 (08:55 +0000)]
Use database to track uploaded chunks and concatenate at the end.
follow up r93720
Neil Kandalgaonkar [Wed, 30 Nov 2011 01:41:05 +0000 (01:41 +0000)]
use example.com, the RFC-2606 guaranteed example url. followup to r99446
Brion Vibber [Wed, 30 Nov 2011 00:37:35 +0000 (00:37 +0000)]
Apply the actual fix from r104635. :P
Brion Vibber [Wed, 30 Nov 2011 00:36:34 +0000 (00:36 +0000)]
* (bug 32712) Fix for search indexing of pages with certain unicode chars following URL
A regex in SearchUpdate was built for ancient pure ISO 8859-1 and looked for \xa0-\xff bytes -- this caused the regex to cut off partway through if there was a char containing a byte in the \x80-\x9f range.
Fixed regex to pass \x80-\xff instead.
Added a test case to SearchUpdateTest which checks for this case (example text run through the update squash algo, then run through preg_replace with a /u param to make sure it gets treated as UTF-8 and checking whether it breaks.)
Robin Pepermans [Tue, 29 Nov 2011 21:07:24 +0000 (21:07 +0000)]
Change number separator from dot to a space, per User:Nemo_bis (it is the convention in Italian to use spaces)
Sam Reed [Tue, 29 Nov 2011 21:04:20 +0000 (21:04 +0000)]
Moar documentations
Raimond Spekking [Tue, 29 Nov 2011 20:32:09 +0000 (20:32 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Chad Horohoe [Tue, 29 Nov 2011 17:59:52 +0000 (17:59 +0000)]
Fix r102137. CliInstaller needs to override wgServer, but not in a manner that breaks the web installer.
Robin Pepermans [Tue, 29 Nov 2011 16:48:37 +0000 (16:48 +0000)]
The URL wasn't loading when the database is used (interwiki cache works). "PHP Notice: Trying to get property of non-object in /www/w/includes/api/ApiQuerySiteinfo.php on line 295"
This reverts r97806. It took me some time to find out, but r96475 accidentally backported the change from $row->iw_url to $row['iw_url'] (etc) to 1.18, which was fixed in r97789. That revision was merged to trunk, which shouldn't have been done either. I.e. until 1.18 it is an object, from 1.19 it is an array.
Antoine Musso [Tue, 29 Nov 2011 14:23:24 +0000 (14:23 +0000)]
Fix fatal error when running newParserTest
The delayed parser test feature was expecting a ParserTest object which is
almost never the case when using the NewParserTest for PHPUnit. The class
name is forged after the file name! They at least all extends NewParserTest
no polymorphism? no multiple hinting. Be creative the PHP way by writing
your own code :-(
Antoine Musso [Tue, 29 Nov 2011 13:54:17 +0000 (13:54 +0000)]
parserTest: delay hooks execution to the point we really need them
disabled and filtered out tests were still triggering hooks run. This patch
let us delay hooks running run a little bit until we know we will really need
their execution (i.e. when test is not filtered out and not disabled).
Saving all that unneeded code execution makes running a subset of parser tests
a bit faster when one has many extension enabled.
NOTE: '!!article' sections are still parsed regardless of their usage.
We would need to add an article/test dependency system to really filter them
Antoine Musso [Tue, 29 Nov 2011 12:46:04 +0000 (12:46 +0000)]
use {} even when if statement is oneliner
Antoine Musso [Tue, 29 Nov 2011 12:17:55 +0000 (12:17 +0000)]
Move terminal colorers classes in their own file
They were originally written for parserTests output and were in
tests/testHelpers.inc since them. Those classes can be used by most
our maintenance scripts anyway, so here is their new home.
Also make tests/testHelpers.inc a bit shorter which is always welcome.
Antoine Musso [Tue, 29 Nov 2011 11:45:52 +0000 (11:45 +0000)]
abstract out $data and name it 'sectionData'
Makes things easier to handle when calling other methods. This avoid method
with ton of parameters.
Also moved duplicate code that reset section data to a new clearSection()
method. Less lines makes code easier to read.
Follow r104549
Antoine Musso [Tue, 29 Nov 2011 11:34:05 +0000 (11:34 +0000)]
nicely align array key / values
Antoine Musso [Tue, 29 Nov 2011 11:27:29 +0000 (11:27 +0000)]
abstract out section sanity check
$section is now a private propery.
The new function avoid code duplication.
Antoine Musso [Tue, 29 Nov 2011 10:52:26 +0000 (10:52 +0000)]
nice debug msg for Title::getRestrictionTypes
Antoine Musso [Tue, 29 Nov 2011 10:22:09 +0000 (10:22 +0000)]
restore parser tests names
r100932 disabled two 'Bad images' tests but did so by also erasing the
test name. Hence we could no more tests them even with --run-disabled.
Test plan:
==========
$ php parserTests.php --run-disabled --filter 'Bad images'
--> output two tests failing as expected
$ php parserTests.php --filter 'Bad images'
--> output no tests found
$ php parserTests.php --quiet
--> ALL PASSED :-)
Sam Reed [Tue, 29 Nov 2011 00:09:04 +0000 (00:09 +0000)]
Bit more documentation
(test commit also)
Sam Reed [Mon, 28 Nov 2011 23:18:55 +0000 (23:18 +0000)]
* (bug 32276) Skins were generating output using the internal page title which would allow anonymous users to determine wheter a page exists, potentially leaking private data. In fact, the curid and oldid request parameters would
allow page titles to be enumerated even when they are not guessable.
* (bug 32616) action=ajax requests were dispatched to the relevant internal functions without any read permission checks being done. This could lead to data leakage on private wikis.
Raimond Spekking [Mon, 28 Nov 2011 21:01:31 +0000 (21:01 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Robin Pepermans [Mon, 28 Nov 2011 20:53:26 +0000 (20:53 +0000)]
* (bug 27721) Make JavaScript variables wgSeparatorTransformTable and wgDigitTransformTable depend on page content language so the sort script sorts correctly more often. It will e.g. sort according to the user language on special pages, where localised numbers are usually used.
* New JavaScript variable wgPageContentLanguage (independent from the bug, but I assume this var can be useful)
Sam Reed [Mon, 28 Nov 2011 20:35:32 +0000 (20:35 +0000)]
* (bug 32688) Paraminfo for parameter "generator" of the query module shows too many types
Pass prop and list through the generator filtering in the constructor
Sam Reed [Mon, 28 Nov 2011 20:04:40 +0000 (20:04 +0000)]
Followup r104445, swap the xmlnamespace url back to
Brion Vibber [Mon, 28 Nov 2011 19:55:49 +0000 (19:55 +0000)]
Revert r104274, r104284, r104285 -- breaks special pages on non-english
Brion Vibber [Mon, 28 Nov 2011 19:30:34 +0000 (19:30 +0000)]
* (bug 32659) Code cleanup: normalize order of params to implode() in Language:: functions
Patch by Daniel Werner, https://bugzilla.wikimedia.org/attachment.cgi?id=9555&action=diff
For "historical reasons" implode() accepts parameters as ($list, $sep) as well as the usual ($sep, $list) but it's better to use the standard to be clear.
Sam Reed [Mon, 28 Nov 2011 19:17:06 +0000 (19:17 +0000)]
Followup r104441
Fix capitalisation mismatch
Sam Reed [Mon, 28 Nov 2011 19:02:59 +0000 (19:02 +0000)]
URL-ify index.php urls
Sam Reed [Mon, 28 Nov 2011 15:43:11 +0000 (15:43 +0000)]
Oh noes, moar http:// -> https://
Sam Reed [Mon, 28 Nov 2011 15:33:28 +0000 (15:33 +0000)]
Added "ApiGetDescription" hook
Sam Reed [Mon, 28 Nov 2011 15:19:20 +0000 (15:19 +0000)]
Bump MySQL version to 5.0.2 after r104047
Documentation
Antoine Musso [Mon, 28 Nov 2011 15:19:09 +0000 (15:19 +0000)]
use meaningful test in a parser test
Readin the text case, I though 'pre' was some kind of magic keyword to render
a preformatted text. It happens it is just a text. Replacing it with something
that will not confuse me or others.
follow up r103933
Sam Reed [Mon, 28 Nov 2011 15:17:46 +0000 (15:17 +0000)]
Https for all!
(omg, this hadn't been reported)
Aaron Schulz [Mon, 28 Nov 2011 09:03:39 +0000 (09:03 +0000)]
Fix r104410: Added default value for $options to purgeThumbnails(), not sure how this was lost in the patch
Aaron Schulz [Mon, 28 Nov 2011 08:57:46 +0000 (08:57 +0000)]
FU r104410: don't even bother calling filterThumbnailPurgeList() if 'forRefresh' isn't set to be safe
Aaron Schulz [Mon, 28 Nov 2011 08:53:03 +0000 (08:53 +0000)]
Restored r98710 but with a 'forRefresh' option (not used yet)
Antoine Musso [Mon, 28 Nov 2011 06:52:34 +0000 (06:52 +0000)]
using real identity for hashar
Most other occurrences where changed by r100588 already.
Thanks to "Reach Out to the Truth" for spotting this one.
Tim Starling [Mon, 28 Nov 2011 04:40:31 +0000 (04:40 +0000)]
Fix for r101677: remove the extra parameters from the other getImageArea() callers.
Tim Starling [Mon, 28 Nov 2011 04:37:15 +0000 (04:37 +0000)]
Fix for r99911: don't use getImageArea() to determine the area for comparison against $wgMaxImageArea, this breaks the $wgMaxAnimatedGifArea feature completely.
John Du Hart [Mon, 28 Nov 2011 00:31:05 +0000 (00:31 +0000)]
Followup r104353, updating Special:ProtectedTitles
Adds HTML form fields for namespaces and restriction levels
Adds getVal() to HTMLForm
Raimond Spekking [Sun, 27 Nov 2011 20:45:01 +0000 (20:45 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 27 Nov 2011 20:35:04 +0000 (20:35 +0000)]
Register new message key from r104325
John Du Hart [Sun, 27 Nov 2011 19:17:07 +0000 (19:17 +0000)]
Followup r104353, updating Special:Categories
John Du Hart [Sun, 27 Nov 2011 19:05:01 +0000 (19:05 +0000)]
Adding $gallery field to NewFilesPager
John Du Hart [Sun, 27 Nov 2011 19:03:56 +0000 (19:03 +0000)]
Followup r104353, updating Special:NewFiles
John Du Hart [Sun, 27 Nov 2011 18:28:13 +0000 (18:28 +0000)]
Followup r104353, fixing a regression in the BlockList
John Du Hart [Sun, 27 Nov 2011 18:23:50 +0000 (18:23 +0000)]
This is the rework I was talking about in r104318 for 1.19. Instead of having Pager subclasses build HTML forms by hand build HTMLForm into the Pager class. Much less painful, no?
This is simply a first pass, there's many more classes to convert.
John Du Hart [Sun, 27 Nov 2011 17:31:14 +0000 (17:31 +0000)]
Followup r104318, sort the options in the limit dropdown
Platonides [Sun, 27 Nov 2011 16:28:54 +0000 (16:28 +0000)]
Bug 32673: Keep the username in the input field if not existing
We could also add on LogEventsList.php line 870
$this->performer = $name;
but that method is also used to build the query, which we don't want to affect.
Alexandre Emsenhuber [Sun, 27 Nov 2011 16:20:13 +0000 (16:20 +0000)]
Make Skin::formatDebugHTML()'s formatting work when memory usage is greather that 10M
Platonides [Sun, 27 Nov 2011 16:12:20 +0000 (16:12 +0000)]
Test to ensure that after adding a category to a template, the articles get moved into that category.
Articles containing [[es:Plantilla:Ficha_de_pelĂcula]] showed the categories at the bottom, but were
not in categorylinks (solved by a doing a null edit to the template and waiting for the job queue, but
how did that situation happen to begin with?).
Robin Pepermans [Sun, 27 Nov 2011 15:38:05 +0000 (15:38 +0000)]
Use protocol-relative URL for link to MediaWiki.org (as with the footer logo on each page)
Alexandre Emsenhuber [Sun, 27 Nov 2011 09:39:24 +0000 (09:39 +0000)]
* Use WikiPage instead of Article in Skin and SkinTemplate
* Added $context parameter to Action::factory() to allow callers passing a WikiPage object in addition to Article (otherwise this would throw a fatal error in getContext() since WikiPage::getContext() does not exist)
Raimond Spekking [Sun, 27 Nov 2011 09:30:20 +0000 (09:30 +0000)]
Consistency tweak for r104325
Jeroen De Dauw [Sat, 26 Nov 2011 23:48:57 +0000 (23:48 +0000)]
added action message
Jeroen De Dauw [Sat, 26 Nov 2011 23:23:59 +0000 (23:23 +0000)]
docs++
Jeroen De Dauw [Sat, 26 Nov 2011 23:23:11 +0000 (23:23 +0000)]
about time I added myself :)
John Du Hart [Sat, 26 Nov 2011 23:05:47 +0000 (23:05 +0000)]
Followup r104318, add the new class to the Autoloader
John Du Hart [Sat, 26 Nov 2011 22:50:05 +0000 (22:50 +0000)]
Followup r103984, take the default for the language dropdown from the URL
John Du Hart [Sat, 26 Nov 2011 22:19:44 +0000 (22:19 +0000)]
Updating my name position in the CREDITS.
Not to trying be pretentious or anything just, ya know.
John Du Hart [Sat, 26 Nov 2011 22:15:36 +0000 (22:15 +0000)]
Bug 32603 - limit option is missing on Special:BlockList
Okay so essentially this is a workaround for a 1.18 release blocker, and is not a real solution. The real solution is to rework the Pager class to work with HTMLForm and then move the form for BlockList into the BlockListPager. I'll have that done before 1.19.
Platonides [Sat, 26 Nov 2011 21:47:37 +0000 (21:47 +0000)]
Added parser test about brackets and for bug 21261
Bryan Tong Minh [Sat, 26 Nov 2011 21:46:51 +0000 (21:46 +0000)]
Follow-up r104312, tab to space
Bryan Tong Minh [Sat, 26 Nov 2011 21:45:08 +0000 (21:45 +0000)]
(bug 32630) Add image/vnd.adobe.photoshop as alias for image/x-photoshop
Bryan Tong Minh [Sat, 26 Nov 2011 21:41:27 +0000 (21:41 +0000)]
Qqq for r99224
Bryan Tong Minh [Sat, 26 Nov 2011 21:31:22 +0000 (21:31 +0000)]
Follow-up r92364: Update hooks documentation
John Du Hart [Sat, 26 Nov 2011 20:58:15 +0000 (20:58 +0000)]
Bug 32666 - Special:ActiveUsers should use given subpage as username and prefill the input field
John Du Hart [Sat, 26 Nov 2011 20:40:59 +0000 (20:40 +0000)]
Bug 32665 - Special:BlockList/username is using given username, but does not show the username in the input field
Raimond Spekking [Sat, 26 Nov 2011 20:30:25 +0000 (20:30 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 26 Nov 2011 18:05:51 +0000 (18:05 +0000)]
More protocol relative links, reported by OsamaK@translatewiki.net (openid.net supports HTTPS)
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Openidlogininstructions/ar
Daniel Friesen [Sat, 26 Nov 2011 17:43:45 +0000 (17:43 +0000)]
Followup r104274; Add '$key' to the $data array as well.
Daniel Friesen [Sat, 26 Nov 2011 16:29:25 +0000 (16:29 +0000)]
Implement path routing code.
- Makes extending paths with extensions simpler.
- Should fix bug 32621 by parsing paths based on pattern weight rather than pattern order.
Alexandre Emsenhuber [Sat, 26 Nov 2011 15:12:23 +0000 (15:12 +0000)]
Fixes for LanguageConverter::parseCachedTable() (seems really broken for subpages at the moment):
* Use Revsion::newFromTitle() to get the text instead of Article, avoids interference with "oldid" URL parameter. Also Article::getContents() (with final "s") does not exist and would throw a fatal error.
* Check if $subpage is empty before using the message cache instead of '/' in $code
* Early return if the page contains no text
Purodha B Blissenbach [Sat, 26 Nov 2011 09:03:20 +0000 (09:03 +0000)]
Add colon to message, see https://translatewiki.net/wiki/Thread:Support/Missing_colon_at_MediaWiki:Config-db-schema
Sam Reed [Sat, 26 Nov 2011 00:32:30 +0000 (00:32 +0000)]
Followup r102624
Change $wgRealNameInInterface default to false
<mumble>change</mumble>
Raimond Spekking [Fri, 25 Nov 2011 17:03:37 +0000 (17:03 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Antoine Musso [Fri, 25 Nov 2011 12:22:47 +0000 (12:22 +0000)]
->  
follow r103708
Aaron Schulz [Fri, 25 Nov 2011 02:21:46 +0000 (02:21 +0000)]
FU r103738: redid the method of getting the source file name for thumbnails altogether, using suggestion per CR.
Sam Reed [Fri, 25 Nov 2011 00:16:34 +0000 (00:16 +0000)]
Improve comment from r104047
Also bump MySQL min requirements to 5.0.2 to save an extra conditional
>= 5.0.2 has been around ages..
Sam Reed [Fri, 25 Nov 2011 00:15:27 +0000 (00:15 +0000)]
"else if" to "elseif"
Raimond Spekking [Thu, 24 Nov 2011 20:50:30 +0000 (20:50 +0000)]
Localisation updates for ToolserverI18N from translatewiki.net