lhc/web/wiklou.git
12 years agoFix the line heights for Indic languages. Refer Bug 32826.
Santhosh Thottingal [Thu, 8 Dec 2011 06:19:15 +0000 (06:19 +0000)]
Fix the line heights for Indic languages. Refer Bug 32826.
Grouped the elements based on language.

12 years agoFU r105512: just always use thumb.php style errors
Aaron Schulz [Thu, 8 Dec 2011 04:58:26 +0000 (04:58 +0000)]
FU r105512: just always use thumb.php style errors

12 years agoFU r101117: removed cURL thumb handler code and made thumb_handler.php a thin wrapper...
Aaron Schulz [Thu, 8 Dec 2011 03:43:07 +0000 (03:43 +0000)]
FU r101117: removed cURL thumb handler code and made thumb_handler.php a thin wrapper around thumb.php
* Moved original URL fetching code and parameter extraction code to thumb.php
* Made use of local repo URL and hash settings to avoid extra config code
* This makes it easy to add hooks for extensions/config to alter behavoir (ExtractThumbParameters hook added)
* Added FileRepo::getHashLevels()

12 years agoFU r104688:
Aaron Schulz [Thu, 8 Dec 2011 02:02:21 +0000 (02:02 +0000)]
FU r104688:
* Removed a bit of cruft in from a comment (c&p error)
* Clarified 'value' params comment (AFAIK)
* Broke some long lines and made some other w/s cleanups

12 years agoadd since tag; please do this if you add new public methods, it avoids bugs and hassl...
Jeroen De Dauw [Wed, 7 Dec 2011 23:54:51 +0000 (23:54 +0000)]
add since tag; please do this if you add new public methods, it avoids bugs and hassle for other people

12 years ago(bug 32473) [[Special:PasswordReset]] can not be used on private wiki
Antoine Musso [Wed, 7 Dec 2011 14:25:26 +0000 (14:25 +0000)]
(bug 32473) [[Special:PasswordReset]] can not be used on private wiki

This patch is a quick fix for REL1_18 branch.

For later:
We should not have hack in Title.php to allow some specific special pages
this should be made possible using SpecialPage. Would make code cleaner.

12 years ago(bug 32853) DBA cache broken in MW 1.18
Antoine Musso [Wed, 7 Dec 2011 11:04:11 +0000 (11:04 +0000)]
(bug 32853) DBA cache broken in MW 1.18

DBABagOStuff was not refactored by r83140 which pass BagOStuff constructors
an array. This patch honor the 'dir' parameter to let you override the global
$wgTmpDirectory.

Need backport in REL1_18

12 years agoIt looks documented to me
Tim Starling [Tue, 6 Dec 2011 23:50:22 +0000 (23:50 +0000)]
It looks documented to me

12 years ago* (bug 32617) Fix for edit summary on section 0 containing a bogus section heading
Brion Vibber [Tue, 6 Dec 2011 23:40:44 +0000 (23:40 +0000)]
* (bug 32617) Fix for edit summary on section 0 containing a bogus section heading

Based on patch posted by Dan Collins: https://bugzilla.wikimedia.org/attachment.cgi?id=9552
with a tweak to avoid breaking a similar case in other sections. Follows up on function extraction & test cases added in r105379.

12 years agoFor bug 32617: lift some code out to a function - EditPage::extractSectionTitle ...
Brion Vibber [Tue, 6 Dec 2011 23:35:42 +0000 (23:35 +0000)]
For bug 32617: lift some code out to a function - EditPage::extractSectionTitle - so it can be tested and fixed.

Added test cases, including one that fails thus demonstrating bug 32617.

12 years agoMinor tweaks to cleanSig(inSig)
Chad Horohoe [Tue, 6 Dec 2011 23:07:13 +0000 (23:07 +0000)]
Minor tweaks to cleanSig(inSig)
* Make cleanSig public, since it's a declared entry point per class docs
* Make cleanSigInSig public static, added 2 more test cases for it

12 years agoIndentation fix
Chad Horohoe [Tue, 6 Dec 2011 23:06:50 +0000 (23:06 +0000)]
Indentation fix

12 years ago* (bug 32786) Fix backwards compatibility for extensions using 1.17's Database::newFr...
Brion Vibber [Tue, 6 Dec 2011 22:37:38 +0000 (22:37 +0000)]
* (bug 32786) Fix backwards compatibility for extensions using 1.17's Database::newFromType()

Patch based on https://bugzilla.wikimedia.org/attachment.cgi?id=9604 by Solitarius -- thanks!
Added a conversion for a changed tablePrefix / tableprefix bit.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 6 Dec 2011 21:36:57 +0000 (21:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFollow up r104314 as noted in bug 21261 comment 9
Platonides [Tue, 6 Dec 2011 21:27:55 +0000 (21:27 +0000)]
Follow up r104314 as noted in bug 21261 comment 9

12 years agoFollowup r104350, r104318: only allow custom limits through if they're valid positive...
Brion Vibber [Tue, 6 Dec 2011 19:45:56 +0000 (19:45 +0000)]
Followup r104350, r104318: only allow custom limits through if they're valid positive ints.

12 years agoRevert r104353, r104354, r104356, r104358, r104383: changes to pagers breaking...
Brion Vibber [Tue, 6 Dec 2011 19:32:29 +0000 (19:32 +0000)]
Revert r104353, r104354,  r104356, r104358,  r104383: changes to pagers breaking existing links as noted in CR.

12 years agoReverted r105208 per CR
Aaron Schulz [Tue, 6 Dec 2011 18:48:48 +0000 (18:48 +0000)]
Reverted r105208 per CR

12 years agoFollowup r92081: SQL fix for cleanupUploadStash.php on PostgreSQL (bug 32822)
Brion Vibber [Tue, 6 Dec 2011 18:15:28 +0000 (18:15 +0000)]
Followup r92081: SQL fix for cleanupUploadStash.php on PostgreSQL (bug 32822)

12 years agoReduce some duplication in Action::getRestriction(), all but 2 (plus one extension...
Chad Horohoe [Tue, 6 Dec 2011 17:40:12 +0000 (17:40 +0000)]
Reduce some duplication in Action::getRestriction(), all but 2 (plus one extension) return null anyway

12 years agoAdd comment on legality of plain % in html5 spec for later consideration.
Gabriel Wicke [Tue, 6 Dec 2011 16:04:43 +0000 (16:04 +0000)]
Add comment on legality of plain % in html5 spec for later consideration.

12 years agoFix misleading parser test title, likely a copyo from the one just before it.
Gabriel Wicke [Tue, 6 Dec 2011 15:43:40 +0000 (15:43 +0000)]
Fix misleading parser test title, likely a copyo from the one just before it.
This test is about %25 in an URL, not %26.

12 years agoFix whitespace
Sam Reed [Tue, 6 Dec 2011 15:38:51 +0000 (15:38 +0000)]
Fix whitespace

12 years agoAdd a getExpiry method to Block (rather than direct member variable access. Yuck)
Sam Reed [Tue, 6 Dec 2011 15:23:21 +0000 (15:23 +0000)]
Add a getExpiry method to Block (rather than direct member variable access. Yuck)

12 years agorevert r104468 per CR: not needed :-)
Antoine Musso [Tue, 6 Dec 2011 12:49:59 +0000 (12:49 +0000)]
revert r104468 per CR: not needed :-)

12 years agoallow bold in TOC lines
Antoine Musso [Tue, 6 Dec 2011 10:50:47 +0000 (10:50 +0000)]
allow bold in TOC lines

just like r102179 allowed italics in TOC lines for bug 26375, this
patch allow bold text as well.

12 years agoDiff colors now use the french Wikipedia scheme
Antoine Musso [Tue, 6 Dec 2011 09:41:52 +0000 (09:41 +0000)]
Diff colors now use the french Wikipedia scheme

The french community has been using a specific set of colors for diff, it is
believed to be easier to read for people perceiving colors differently.

Source is from:
http://fr.wikipedia.org/w/index.php?oldid=72567845&uselang=en

This commit override r94429 / r94461.

See also docs/uidesign/mediawiki.action.history.diff.html

12 years agouidesign: fix diffchange, show basic diff just like on wiki
Antoine Musso [Tue, 6 Dec 2011 09:35:24 +0000 (09:35 +0000)]
uidesign: fix diffchange, show basic diff just like on wiki

12 years agobasic design file for our diffs
Antoine Musso [Tue, 6 Dec 2011 09:15:41 +0000 (09:15 +0000)]
basic design file for our diffs

Might help folks on r94461 . Loading this file will let you easily
look at the diff file. Might need to be improved to show a real diff
instead.

12 years agomove docs/design.html to a new 'uidesign' directory
Antoine Musso [Tue, 6 Dec 2011 09:14:27 +0000 (09:14 +0000)]
move docs/design.html to a new 'uidesign' directory

12 years agoFix for r103471: WikiPage::doSubmit() is not the only implementation of doSubmit...
Tim Starling [Tue, 6 Dec 2011 01:21:08 +0000 (01:21 +0000)]
Fix for r103471: WikiPage::doSubmit() is not the only implementation of doSubmit() that needs to be patched to return true. Without this, action=purge on an image page just shows a blank body.

12 years agomediawiki.user.js comment fix
Krinkle [Mon, 5 Dec 2011 22:29:40 +0000 (22:29 +0000)]
mediawiki.user.js comment fix

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 5 Dec 2011 21:02:57 +0000 (21:02 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFU r104216: keep the r103738 regex check for thumbnails but use the parent directory...
Aaron Schulz [Mon, 5 Dec 2011 19:17:44 +0000 (19:17 +0000)]
FU r104216: keep the r103738 regex check for thumbnails but use the parent directory as the source file name. This avoids the assumption that the thumb URL starts with /thumb.

12 years agoAdd missing @since tags for getLanguage and deal with this sanitizeLangCode fatal...
Daniel Friesen [Mon, 5 Dec 2011 18:56:09 +0000 (18:56 +0000)]
Add missing @since tags for getLanguage and deal with this sanitizeLangCode fatal that no-one bothered to fix.

12 years agoMore documentation of parameters following up r104591
Sam Reed [Mon, 5 Dec 2011 16:50:58 +0000 (16:50 +0000)]
More documentation of parameters following up r104591

12 years agoFix hook name in RELEASE-NOTES-1.19 per Niklas on r104441
Sam Reed [Mon, 5 Dec 2011 16:33:54 +0000 (16:33 +0000)]
Fix hook name in RELEASE-NOTES-1.19 per Niklas on r104441

12 years agoFix PageHistoryBeforeList hook
Antoine Musso [Mon, 5 Dec 2011 16:15:05 +0000 (16:15 +0000)]
Fix PageHistoryBeforeList hook

Following r100534 refactoring, it was using an incorrect variable.

12 years agoRevert r105162 for now per CR.
Raimond Spekking [Mon, 5 Dec 2011 12:47:52 +0000 (12:47 +0000)]
Revert r105162 for now per CR.

12 years agoFix PageHistoryBeforeList hook
Antoine Musso [Mon, 5 Dec 2011 10:56:56 +0000 (10:56 +0000)]
Fix PageHistoryBeforeList hook

Following r100534 refactoring, it was using an incorrect variable.
Use the new accessor instead.

12 years agoSkip replaceInternalLinks2 for js/css pages
Antoine Musso [Mon, 5 Dec 2011 10:14:40 +0000 (10:14 +0000)]
Skip replaceInternalLinks2 for js/css pages

Just skip the whole replaceInternalLinks2 parser function whenever we hit
js/css pages. Previous patch r103476 only handled Category links which was
not enough.

12 years ago* Made resetDB() actually clear out the tables rather than leave the contents
Aaron Schulz [Mon, 5 Dec 2011 07:22:27 +0000 (07:22 +0000)]
* Made resetDB() actually clear out the tables rather than leave the contents
* Removed destroyDB(); unused and broken (does not use prefix)

12 years agoRevert r105140 temporarily. The exception is thrown while running the parser tests...
Roan Kattouw [Mon, 5 Dec 2011 07:03:21 +0000 (07:03 +0000)]
Revert r105140 temporarily. The exception is thrown while running the parser tests (at least from Jenkins, haven't tried locally), which completely breaks the test suite and renders Jenkins useless. Feel free to reapply once the cause of the oi_archive_name bug is fixed and committing this won't cause exceptions to be thrown in Jenkins's face.

12 years agoType hinting please
John Du Hart [Mon, 5 Dec 2011 02:29:08 +0000 (02:29 +0000)]
Type hinting please

12 years agoShowing an error message always left-to-right.
Amir E. Aharoni [Mon, 5 Dec 2011 00:13:06 +0000 (00:13 +0000)]
Showing an error message always left-to-right.

12 years agoAdded file old version name sanity check to recordUpload2()
Aaron Schulz [Sun, 4 Dec 2011 23:34:24 +0000 (23:34 +0000)]
Added file old version name sanity check to recordUpload2()

12 years agosvn:eol-style native on all phase3 stuff, since I messed that up in r105122
John Du Hart [Sun, 4 Dec 2011 18:35:40 +0000 (18:35 +0000)]
svn:eol-style native on all phase3 stuff, since I messed that up in r105122
Also adding the MWDebug class I missed there as well

12 years agoAdding new debugging toolbar
John Du Hart [Sun, 4 Dec 2011 18:29:57 +0000 (18:29 +0000)]
Adding new debugging toolbar

Needs a UI cleanup still, but for the most part is working.

12 years agoRemove documentByLine, as documentDescription unused since introduced in r2881
Derk-Jan Hartman [Sun, 4 Dec 2011 16:38:43 +0000 (16:38 +0000)]
Remove documentByLine, as documentDescription unused since introduced in r2881

12 years agoRemove documentDescription class, which seems to have been introduced with the origin...
Derk-Jan Hartman [Sun, 4 Dec 2011 16:31:17 +0000 (16:31 +0000)]
Remove documentDescription class, which seems to have been introduced with the original monobook commit, but was never actually used.

12 years agoRemove totally pointless and somewhat annoying !important from commonPrint.
Derk-Jan Hartman [Sun, 4 Dec 2011 16:19:14 +0000 (16:19 +0000)]
Remove totally pointless and somewhat annoying !important from commonPrint.

This fixes bug 32795

12 years agoFollow up to r105114
Derk-Jan Hartman [Sun, 4 Dec 2011 16:06:56 +0000 (16:06 +0000)]
Follow up to r105114

one more tocindent

12 years agoRemove tocindent and tocinline from print stylesheet. These seem to have been unused...
Derk-Jan Hartman [Sun, 4 Dec 2011 15:59:38 +0000 (15:59 +0000)]
Remove tocindent and tocinline from print stylesheet. These seem to have been unused since r7073

12 years agoFollowup r103678; Add a comment.
Daniel Friesen [Sat, 3 Dec 2011 23:19:34 +0000 (23:19 +0000)]
Followup r103678; Add a comment.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 3 Dec 2011 14:56:00 +0000 (14:56 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoPer Timo, the second line would wipe out the first
Sam Reed [Fri, 2 Dec 2011 21:50:42 +0000 (21:50 +0000)]
Per Timo, the second line would wipe out the first

12 years agoFollowup r104671: fix regression in jquery.delayedBind() due to change in param proce...
Brion Vibber [Fri, 2 Dec 2011 21:47:46 +0000 (21:47 +0000)]
Followup r104671: fix regression in jquery.delayedBind() due to change in param processing for jquery's bind()

Problem was per CR comment https://www.mediawiki.org/wiki/Special:Code/MediaWiki/104671#c26836 -- parameter count check changed in upstream jquery.bind(), causing the way we passed params to break if the optional 'data' parameter was left out.

Added QUnit test cases for jquery.delayedBind() with and without the optional 'data' parameter.
Undoes r104671 since the issue it was working around is fixed.

12 years agoFixed comment typo
Aaron Schulz [Fri, 2 Dec 2011 07:45:20 +0000 (07:45 +0000)]
Fixed comment typo

12 years agopurgeParserCache.php improvements:
Tim Starling [Fri, 2 Dec 2011 02:59:11 +0000 (02:59 +0000)]
purgeParserCache.php improvements:
* Do queries in batches of 100 rows instead of all at once. Note that if there are a lot of objects with the exact same expiry time, it might take multiple runs of the script to delete them all.
* Progress meter.

12 years agoReverting r103706
Sam Reed [Fri, 2 Dec 2011 00:29:46 +0000 (00:29 +0000)]
Reverting r103706

Only seemingly supported by MySQL, and likely a seldom used function

Not worth trying to support it, as other non mysql db's would need workarounds, and that's just not happening

12 years agoAttempt to fix External Edit for files.
gicode [Thu, 1 Dec 2011 19:11:54 +0000 (19:11 +0000)]
Attempt to fix External Edit for files.

I would feel better if I knew how to test this all the way through...

Follow-up r102521.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 1 Dec 2011 15:19:26 +0000 (15:19 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFix double period from r104043
Chad Horohoe [Thu, 1 Dec 2011 14:41:07 +0000 (14:41 +0000)]
Fix double period from r104043

12 years agoDon't comment tests out, use $this->markTestIncomplete()
Sam Reed [Thu, 1 Dec 2011 14:40:11 +0000 (14:40 +0000)]
Don't comment tests out, use $this->markTestIncomplete()

Followup r104812

12 years agoComment out brokwn Xml::dateMenu() tests
Sam Reed [Thu, 1 Dec 2011 00:40:56 +0000 (00:40 +0000)]
Comment out brokwn Xml::dateMenu() tests

Failing because it's december (ie the test is wrong)

12 years agoAnother artefact of the disable account merge
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

12 years ago* (bug 4901) lang, hreflang attributes added to sidebar interlanguage links
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.

12 years agoUnused $wgParser. Fix comment
Platonides [Wed, 30 Nov 2011 23:06:18 +0000 (23:06 +0000)]
Unused $wgParser. Fix comment

12 years agoFix notice in r104684
Roan Kattouw [Wed, 30 Nov 2011 22:48:10 +0000 (22:48 +0000)]
Fix notice in r104684

12 years ago* (bug 16434) Fix paging on Special:Prefixindex when prefix is empty (whole namespace).
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.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 30 Nov 2011 20:59:10 +0000 (20:59 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoAdd RefreshLinks class to the AutoLoader, I'll need it for my cleanup script for...
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

12 years agoadd concatenate no-op to ForeignAPIRepo.php
Jan Gerber [Wed, 30 Nov 2011 15:58:16 +0000 (15:58 +0000)]
add concatenate no-op to ForeignAPIRepo.php
Follow up r104687

12 years agoFix DatabaseSqliteTest for db changes for chunk support.
Jan Gerber [Wed, 30 Nov 2011 15:24:27 +0000 (15:24 +0000)]
Fix DatabaseSqliteTest for db changes for chunk support.
follow up 104687

12 years agoFollowup r104688, reintroduce the full PathRouter code now that the bug with url...
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.

12 years agoFollowup r104274, r104676. Fix the bug that broke fr. Forgot to rawurldecode path...
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.

12 years agoUse database to track uploaded chunks and concatenate at the end.
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

12 years agoRELEASE-NOTES for r104668, r104671, r104684
Roan Kattouw [Wed, 30 Nov 2011 14:56:28 +0000 (14:56 +0000)]
RELEASE-NOTES for r104668, r104671, r104684

12 years ago)bug 15521) Use new section summary when the action of adding a new section also...
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

12 years agoRevert r104659 and its followup r104665: break the unit tests with a fatal error...
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.

12 years agoRecommit PathRouter code from r104274, r104284, r104285 without the WebRequest.php...
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.

12 years ago(bug 31212) History tab not collapsed when the screen is narrow. Patch by Michael M
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

12 years ago(bug 32230) Expose wgRedirectedFrom (title of the page we were redirected from, if...
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

12 years agoadd i18n#Message_documentation for the newly added messages and add entry to messages.inc
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

12 years agoUse database to track uploaded chunks and concatenate at the end.
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

12 years agouse example.com, the RFC-2606 guaranteed example url. followup to r99446
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

12 years agoApply the actual fix from r104635. :P
Brion Vibber [Wed, 30 Nov 2011 00:37:35 +0000 (00:37 +0000)]
Apply the actual fix from r104635. :P

12 years ago* (bug 32712) Fix for search indexing of pages with certain unicode chars following URL
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.)

12 years agoChange number separator from dot to a space, per User:Nemo_bis (it is the convention...
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)

12 years agoMoar documentations
Sam Reed [Tue, 29 Nov 2011 21:04:20 +0000 (21:04 +0000)]
Moar documentations

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 29 Nov 2011 20:32:09 +0000 (20:32 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFix r102137. CliInstaller needs to override wgServer, but not in a manner that breaks...
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.

12 years agoThe URL wasn't loading when the database is used (interwiki cache works). "PHP Notice...
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.

12 years agoFix fatal error when running newParserTest
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 :-(

12 years agoparserTest: delay hooks execution to the point we really need them
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

12 years agouse {} even when if statement is oneliner
Antoine Musso [Tue, 29 Nov 2011 12:46:04 +0000 (12:46 +0000)]
use {} even when if statement is oneliner

12 years agoMove terminal colorers classes in their own file
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.

12 years agoabstract out $data and name it 'sectionData'
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

12 years agonicely align array key / values
Antoine Musso [Tue, 29 Nov 2011 11:34:05 +0000 (11:34 +0000)]
nicely align array key / values

12 years agoabstract out section sanity check
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.