lhc/web/wiklou.git
10 years agoAdded new + updated old tests for preventing regressions in Parsoid
Subramanya Sastry [Mon, 24 Jun 2013 17:03:36 +0000 (12:03 -0500)]
Added new + updated old tests for preventing regressions in Parsoid

Change-Id: I2963d8f2a91ec473eb7c9b063c4c5a4c2de8f82d

10 years agoMerge "Capitalize URL in api help"
jenkins-bot [Mon, 24 Jun 2013 08:26:52 +0000 (08:26 +0000)]
Merge "Capitalize URL in api help"

10 years agoMerge "Fix typo "relavent" in release notes"
jenkins-bot [Mon, 24 Jun 2013 01:16:13 +0000 (01:16 +0000)]
Merge "Fix typo "relavent" in release notes"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 23 Jun 2013 20:06:41 +0000 (20:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I053c79ff1f095d49668e94a0e05a2b56e668a9ea

10 years agoFix typo "relavent" in release notes
Timo Tijhof [Sun, 23 Jun 2013 09:31:38 +0000 (02:31 -0700)]
Fix typo "relavent" in release notes

Follows-up 8c328d030fc1f7f.

Change-Id: I7395d78b29ba4f754466ded6e0c3b14f35f92440

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 22 Jun 2013 21:09:27 +0000 (21:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6c67e5c688c85cb291255f67f8fe10c576474272

10 years agoCapitalize URL in api help
umherirrender [Fri, 21 Jun 2013 21:32:28 +0000 (23:32 +0200)]
Capitalize URL in api help

As part of bug 34965

Change-Id: Ia1df9748b5de33f6ef5088103ccc6b886f9a17d5

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 21 Jun 2013 20:08:50 +0000 (20:08 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ifa64f58104e4e0fdeafd137079676a33698bb229

10 years agoMerge "Allow SearchUpdate hook to abort core update call"
jenkins-bot [Fri, 21 Jun 2013 18:05:00 +0000 (18:05 +0000)]
Merge "Allow SearchUpdate hook to abort core update call"

10 years agoAllow SearchUpdate hook to abort core update call
Chad Horohoe [Thu, 20 Jun 2013 22:50:31 +0000 (18:50 -0400)]
Allow SearchUpdate hook to abort core update call

Going to use this in CirrusSearch since the default text
handling is insane for Solr.

While we're at it, further move content handling to SearchEngine
so children can override behavior here.

Change-Id: I09d11b81c224d53609c57d75d54021e697b56629

10 years agoMerge "Docs and drop silly m prefix from private variables"
jenkins-bot [Fri, 21 Jun 2013 17:22:08 +0000 (17:22 +0000)]
Merge "Docs and drop silly m prefix from private variables"

10 years agoAllow modification of flags on Recent Changes
umherirrender [Thu, 20 Jun 2013 19:34:07 +0000 (21:34 +0200)]
Allow modification of flags on Recent Changes

Moved the message map in ChangesList::flag to a new setting named
$wgRecentChangesFlags and used it keys to iterate over the flags
Also allow setting the class to deal with minor vs. minoredit

Also make ChangesList::recentChangesFlags public to be used from
extensions, when they will build its own line

Changed one list of placeholders to use recentChangesFlags to have the
correct number of spaces there

Change-Id: If69de05c4edec4e84c3e059090b9cb89845e3269

10 years agoMerge "mediawiki.api.parse: Specify wikitext as the content model"
jenkins-bot [Fri, 21 Jun 2013 06:12:44 +0000 (06:12 +0000)]
Merge "mediawiki.api.parse: Specify wikitext as the content model"

10 years agomediawiki.api.parse: Specify wikitext as the content model
Niklas Laxström [Wed, 19 Jun 2013 10:53:23 +0000 (10:53 +0000)]
mediawiki.api.parse: Specify wikitext as the content model

The parse API defaults to use the content model of the title, which
defaults to "API" in the main namespace which can be configured to have
a different content model.

Bug: 48201
Change-Id: I51143873e3782df4df500194a7ac71c4b446746b

10 years agoChange @since and @deprecated notes to 1.22
Kevin Israel [Mon, 20 May 2013 05:52:14 +0000 (01:52 -0400)]
Change @since and @deprecated notes to 1.22

Using the following command line, I have found doc comments mentioning
"1.21" when they should mention "1.22" instead, which I have fixed
manually:

git diff REL1_21 | grep --color=always -C 10 -iE \
'^\+.*(since|deprecated).*1\.21(\D|$)' | aha > oldver.html

I also moved the release notes for I1987190f ("Combine JavaScript and
JSON encoding logic") from RELEASE-NOTES-1.21 to RELEASE-NOTES-1.22
because I had reverted the commit on REL1_21 only (see Id3b88102 and
bug 47431 for the rationale).

Change-Id: I11b917a371e07267dfa98b8449776d0c1cb29b15
Follows-Up: I25cf5a94f6e47f85a9d0b80cc1c9c9f957288478
Follows-Up: I3d72e4105f6244b0695116940e62a2ddef66eb66
Follows-Up: I3faa9c3e8107c6e46cdf21f8c18adda1f42890d7
Follows-Up: I6aab19c8d68bf47beddad42632b0360a7b12f251
Follows-Up: I86368821fc2cd0729df5342b8572eb470c0f77a0
Follows-Up: Id3b88102e768318e3605a19e9952121091a40915
Follows-Up: Ie667088010e24eb6cb569f9e8e8e2553005223eb

10 years agomediawiki.js: Clean up and improve documentation coverage
Timo Tijhof [Mon, 10 Jun 2013 04:40:21 +0000 (06:40 +0200)]
mediawiki.js: Clean up and improve documentation coverage

Function addStyleTag was only documented as a private function,
since a while now it is also exposed as a public method.

Rename the private function so that they can both be included
in the JSDuck index (jsduck can't deal with name clashes between
public and private). Optimised by letting it inherit the
documentation instead of repeating it.

The following were missing documentation:
* mw
* mw.hook
* mw.legacy
* mw.loader#addEmbeddedCSS

Moved assignment of `done` in mw.loader#addScript to where it
was needed. The other if/else paths in that function don't use
it and don't need it to have a value.

With the introduction of mw.log#deprecate (fe46903) we no longer
need mw.legacy. mw.legacy was created for future use to move
legacy stuff into to make it easier to keep track of where they
are used (simple search for 'mw.legacy') however that never
happened and in retrospect was probably a bad idea as it would
require people to change code twice.

We now have a much cleaner solution now that we're able to
create little accessors on any host-object with mw.log#deprecate.
This makes mw.legacy obsolete and it should not be used for
anything. Just in case something is using it I won't remove it
just yet, instead I've deprecated the (what would have become
the) deprecator ;-). We should be able to remove this in 1.23.
Note: Can't use mw.log#deprecate here because that isn't defined
yet at this point, this is the core library which can't have any
dependencies.

Change-Id: I5d241e4284f07a6be271c04cec3a5833dbaeed91

10 years agoDocs and drop silly m prefix from private variables
Chad Horohoe [Thu, 20 Jun 2013 22:48:51 +0000 (18:48 -0400)]
Docs and drop silly m prefix from private variables

Change-Id: Ib2e5507e5735dd94423174f475e6a8e733f89fd7

10 years agoMerge "displaytitle: Pass-by-reference fix for PHP 5.4"
Parent5446 [Thu, 20 Jun 2013 22:28:33 +0000 (22:28 +0000)]
Merge "displaytitle: Pass-by-reference fix for PHP 5.4"

10 years agodisplaytitle: Pass-by-reference fix for PHP 5.4
MatmaRex [Thu, 20 Jun 2013 22:18:36 +0000 (00:18 +0200)]
displaytitle: Pass-by-reference fix for PHP 5.4

PHP 5.4 includes some pass-by-reference changes which apparently make
the '&' sigil necessary here.

Spotted by Mormegil <mormegil@centrum.cz>. Followup to Ie162535b.

Change-Id: I038fa7f8e1559c95dba7b9b498fc1d1f5eb76887

10 years agoReturn errors from WatchAction
Brad Jorsch [Thu, 13 Jun 2013 17:56:29 +0000 (13:56 -0400)]
Return errors from WatchAction

Currently, WatchAction::doWatch and WatchAction::doUnwatch return true
always. Let's have them return a status object instead.

This also cleans up the handling of Status objects in some of the API
modules.

Change-Id: I9dd9f0fd499c37f29fa12bcdb6142238a1f11e4d

10 years agodoc: speed up dot generation
Antoine Musso [Thu, 20 Jun 2013 18:27:04 +0000 (20:27 +0200)]
doc: speed up dot generation

dot supports generating multiple graphs in one run, that was not always
the case and Doxygen had a default of not using that feature.  Given it
got introduced in dot 1.8.10 and Wikimedia CI server has 2.26.x, I guess
it is safe to enable this.

End result, is less shell out overhead.

Change-Id: Ia07b430bd1af608bbe9c10eecbe2df3e0b9c74fc

10 years agodoc: raise doxygen lookup cache
Antoine Musso [Thu, 20 Jun 2013 18:23:30 +0000 (20:23 +0200)]
doc: raise doxygen lookup cache

At the end of a run, doxygen emits a notice regarding the cache lookup
size being too small.  This cache is used to find symbols given their
name which would speed up processing a bit.

The notice before this patch:

lookup cache used 65536/65536 hits=2258467 misses=112595
Note: based on cache misses the ideal setting for LOOKUP_CACHE_SIZE is 1
at the cost of higher memory usage.

And after:

lookup cache used 104632/131072 hits=2131285 misses=105434

That is 7% less miss, not that much but still.  Note how the cache is
well filled (80%).

Change-Id: I0b97e8c5581a63c44a382891f8f1fc8d60975e80

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 20 Jun 2013 19:02:16 +0000 (19:02 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 20 Jun 2013 18:36:16 +0000 (18:36 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I213cd86665ecdbd77e7504e9cd77eea9cbd15b07

10 years agodoc: sync with doxygen 1.7.6.1
Antoine Musso [Thu, 20 Jun 2013 18:19:35 +0000 (20:19 +0200)]
doc: sync with doxygen 1.7.6.1

The Wikimedia CI server runs doxygen 1.7.6.1, this patch sync our
configuration with that version.

TCL_SUBST and LOOKUP_CACHE_SIZE have been added.
IDL_PROPERTY_SUPPORT default value changed, unused by us though

Change-Id: Ic43d99c4675eb8f1772a72a9b9bfaf16057e19f1

10 years agoMerge "Fixed doc typo"
jenkins-bot [Thu, 20 Jun 2013 16:54:46 +0000 (16:54 +0000)]
Merge "Fixed doc typo"

10 years agoMerge "PHPUnit now recognizes extension parser tests"
jenkins-bot [Thu, 20 Jun 2013 12:43:01 +0000 (12:43 +0000)]
Merge "PHPUnit now recognizes extension parser tests"

10 years agoFixed doc typo
Aaron Schulz [Thu, 20 Jun 2013 06:05:24 +0000 (23:05 -0700)]
Fixed doc typo

Change-Id: I158c794539036d48a34dec9f2bbd202752da4fa4

10 years agoMerge "Restore messages of old login and signup forms"
jenkins-bot [Thu, 20 Jun 2013 05:53:59 +0000 (05:53 +0000)]
Merge "Restore messages of old login and signup forms"

10 years agoRestore messages of old login and signup forms
S Page [Thu, 20 Jun 2013 05:25:40 +0000 (22:25 -0700)]
Restore messages of old login and signup forms

The change 44840d15929d8ecfc1d7c31d6f7e86d873ac15a2 "Only new vertical format login and signup forms" removed
some messages no longer used in core, but 'userlogin' is used by
extensions including MobileFrontend

This restores the messages but marks them as unused in core and deprecated.

Change-Id: I82c4fc37481a4a0dea1e839238188f6555e3c60d

10 years agoMerge "Don't show the "permissions error" page after a user self-removes rights"
jenkins-bot [Wed, 19 Jun 2013 23:53:35 +0000 (23:53 +0000)]
Merge "Don't show the "permissions error" page after a user self-removes rights"

10 years agoMerge "Pass content to SearchUpdate rather than raw text"
jenkins-bot [Wed, 19 Jun 2013 21:57:43 +0000 (21:57 +0000)]
Merge "Pass content to SearchUpdate rather than raw text"

10 years agoPass content to SearchUpdate rather than raw text
Chad Horohoe [Wed, 19 Jun 2013 17:55:33 +0000 (13:55 -0400)]
Pass content to SearchUpdate rather than raw text

This is still less than ideal, but at least consolidates the
logic so we can later implement more content-specific handling.

Change-Id: Ic24a7ea2818f6eeb67453877dc5a31f110541ecf

10 years agoMerge "Use getFileContents() instead of incorrect file system call to fetch file...
jenkins-bot [Wed, 19 Jun 2013 20:31:21 +0000 (20:31 +0000)]
Merge "Use getFileContents() instead of incorrect file system call to fetch file contents."

10 years agoRemove unused class, SearchUpdate is backend-agnostic
Chad Horohoe [Wed, 19 Jun 2013 18:34:35 +0000 (14:34 -0400)]
Remove unused class, SearchUpdate is backend-agnostic

Change-Id: I8c91c28ff2bde361490691b4abc107329f0d8194

10 years agoMerge "filebackend: throw exceptions during file iteration."
jenkins-bot [Wed, 19 Jun 2013 19:57:32 +0000 (19:57 +0000)]
Merge "filebackend: throw exceptions during file iteration."

10 years agoMerge "UserCache::getUserName: Docs said @since 1.21, but not in REL1_21"
jenkins-bot [Wed, 19 Jun 2013 19:22:43 +0000 (19:22 +0000)]
Merge "UserCache::getUserName: Docs said @since 1.21, but not in REL1_21"

10 years agoUserCache::getUserName: Docs said @since 1.21, but not in REL1_21
Brian Wolff [Wed, 19 Jun 2013 19:17:52 +0000 (16:17 -0300)]
UserCache::getUserName: Docs said @since 1.21, but not in REL1_21

Change-Id: I4ad85ee36ed348e8b082b5a4dba11d7cb92d8ad0
Follow-up: ef915e37e3d872

10 years agoMerge "vector: Add SVG versions of collapsible menu icons"
jenkins-bot [Wed, 19 Jun 2013 19:14:05 +0000 (19:14 +0000)]
Merge "vector: Add SVG versions of collapsible menu icons"

10 years agovector: Add SVG versions of collapsible menu icons
Pau Giner [Sat, 25 May 2013 08:35:49 +0000 (10:35 +0200)]
vector: Add SVG versions of collapsible menu icons

SVG with a PNG fallback is added for the collapsible tab icon.
It allows SVG-capable browsers to view images at full resolution
while keeping backwards compatibility with browsers that don't support
SVG.

Implementation similar to I914da06494.

Change-Id: I0448e34bd10aa5cf83f1530a44b1555caee271b1

10 years agoMerge "Switched FileBackendStore to use ProfileSection when possible."
jenkins-bot [Wed, 19 Jun 2013 18:26:58 +0000 (18:26 +0000)]
Merge "Switched FileBackendStore to use ProfileSection when possible."

10 years agoMerge "Avoid exceptions by first checking language code validity"
jenkins-bot [Wed, 19 Jun 2013 17:30:03 +0000 (17:30 +0000)]
Merge "Avoid exceptions by first checking language code validity"

10 years agoImprove documentation of action=parse (followup Ie4f7324c)
Brad Jorsch [Wed, 19 Jun 2013 14:53:57 +0000 (10:53 -0400)]
Improve documentation of action=parse (followup Ie4f7324c)

The documentation for action=parse needs clarification, particularly in
light of the changes made in Ie4f7324c which were too hastily merged.

Also, add the RELEASE-NOTES entry missing from Ie4f7324c.

Change-Id: Ia8847f7e99620a9f7af24956d972c882f78aae26

10 years agoRestore API action=parse&text=foo functionality on wikidata.org
Niklas Laxström [Wed, 19 Jun 2013 10:21:19 +0000 (10:21 +0000)]
Restore API action=parse&text=foo functionality on wikidata.org

Bug: 48201
Change-Id: Ie4f7324c2a10700e52dadc4facd6b4fe6c76cf48

10 years agoMerge "Only new vertical format login and signup forms"
jenkins-bot [Wed, 19 Jun 2013 09:13:31 +0000 (09:13 +0000)]
Merge "Only new vertical format login and signup forms"

10 years agoVector: Add the collapsibleTabs script from the Vector extension
lfs [Sun, 24 Mar 2013 23:10:35 +0000 (20:10 -0300)]
Vector: Add the collapsibleTabs script from the Vector extension

* Move jquery.collapsibleTabs from the Vector extension
  to the Vector skin (see 097f387362)
* Register the module and its dependencies
* Merge the init script into the existing vector.js

Bug: 46513
Change-Id: I7bd77e6e4c384c9e2033f9d05ffcae86b0bb7a69

10 years agoSwitched FileBackendStore to use ProfileSection when possible.
Aaron Schulz [Wed, 1 May 2013 03:55:52 +0000 (20:55 -0700)]
Switched FileBackendStore to use ProfileSection when possible.

* Also removed outer profiling layer.

Change-Id: Ice3b921fe0c9981ac16f005d66a78bf4f4a5c601

10 years agoMerge "Support updating search index when page is deleted"
jenkins-bot [Tue, 18 Jun 2013 21:47:12 +0000 (21:47 +0000)]
Merge "Support updating search index when page is deleted"

10 years agoSupport updating search index when page is deleted
Chad Horohoe [Tue, 18 Jun 2013 20:06:49 +0000 (16:06 -0400)]
Support updating search index when page is deleted

Right now, if you delete a page then you end up with a stale
entry in the search index, this affects all core SQL-based
searches.

For extensions, this means they no longer have to implement
something like ArticleDelete, they can just add the delete()
method to their SearchEngine subclass.

Change-Id: I9d8a9878aeebc53f453ab1cbacc03fe73fcca949

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 18 Jun 2013 19:46:42 +0000 (19:46 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I4e865f40a8c69fdc7520bd3a89ec61ca9af57337

10 years agoMerge "Removed redundant doc comments."
jenkins-bot [Tue, 18 Jun 2013 19:13:58 +0000 (19:13 +0000)]
Merge "Removed redundant doc comments."

10 years agoMerge "Make rc_cur_id have proper value for upload log entries."
jenkins-bot [Tue, 18 Jun 2013 18:33:28 +0000 (18:33 +0000)]
Merge "Make rc_cur_id have proper value for upload log entries."

10 years agoMerge "Link to mediawiki.org page in 'edithelppage' message"
jenkins-bot [Tue, 18 Jun 2013 15:48:53 +0000 (15:48 +0000)]
Merge "Link to mediawiki.org page in 'edithelppage' message"

10 years agoMerge "Pass along tagFilter to ContribsPager, it already expects it"
jenkins-bot [Tue, 18 Jun 2013 14:39:35 +0000 (14:39 +0000)]
Merge "Pass along tagFilter to ContribsPager, it already expects it"

10 years agoPass along tagFilter to ContribsPager, it already expects it
Matthias Mullie [Mon, 17 Jun 2013 20:23:35 +0000 (22:23 +0200)]
Pass along tagFilter to ContribsPager, it already expects it

ContribsPager already has this below line:

    $this->tagFilter = isset( $options['tagfilter'] ) ? $options['tagfilter'] : false;

The reason the code already works fine is because, in ChangeTags.php, there's this fallback:

    if ( $filter_tag === false ) {
     $filter_tag = $wgRequest->getVal( 'tagfilter' );
    }

Which essentially boils down to the same result as passing along tagfilter, which in
SpecialContributions is read from $wgRequest, passed to ContribsPager, and (well, currently
not) passed to ChangeTags

Change-Id: I12c0336ae31c5524e41fa0087afe2ba104dc7d37

10 years agoOnly new vertical format login and signup forms
S Page [Wed, 5 Jun 2013 05:20:00 +0000 (22:20 -0700)]
Only new vertical format login and signup forms

* The "VForm" templates replace existing templates.
* Remove useNew switch logic and $wgUseVForm{UserLogin,CreateAccount}.
* The CSS and JS files for forms lose the .vform qualifier, except for
  the CSS for styling vform elements.
* Merge tiny mediawiki.special.userLogin.signup.js into createAccount.js.
* Remove replaced and obsolete messages (see
  https://www.mediawiki.org/wiki/Account_creation_user_experience/Strings
  for details), and remove mention of "new" forms and useNew from
  MessagesQqq.php.

Bug: 46333
Change-Id: I50f25583c3aa9a4a263fb40f50256f92c18ddb4d

10 years agoMerge "mediawiki.api: Implement login method"
jenkins-bot [Tue, 18 Jun 2013 02:51:46 +0000 (02:51 +0000)]
Merge "mediawiki.api: Implement login method"

10 years agoMake rc_cur_id have proper value for upload log entries.
Brian Wolff [Tue, 18 Jun 2013 00:11:44 +0000 (21:11 -0300)]
Make rc_cur_id have proper value for upload log entries.

Primary motivation here is to make Special:Recentchangelinked work
correctly for uploads where the description page doesn't exist yet.
(Previously it was mostly only showing reupload log entries)

Mild downside to this approach is adding the recentchanges row is
now in a different commit...

Change-Id: I74c68b972c47c03066d3065e3748769a27a654fb

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 17 Jun 2013 21:49:13 +0000 (21:49 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agotest: rework interwiki lookup in parser tests
Antoine Musso [Mon, 20 May 2013 13:21:02 +0000 (15:21 +0200)]
test: rework interwiki lookup in parser tests

Some of our parser tests lookup interwikis.  This was originally done
(parser/parserTest.inc) by inserting a set of interwikis in the database
and was later lamely copy pasted in the PHPUnit wrapped test suite
(phpunit/includes/parser/NewParserTest.php).

Since that time, we had duplicate code and had the test hitting the
database to fetch interwiki.  Nowadays, we can trick the Interwiki
lookup class by using the InterwikiLoadPrefix hook, that let us skip
database lookup entirely (by having the hook returning false) and get
rid of the duplicate code.

The good old parserTests.php still pass the tests :-]

Change-Id: I36865e3890e08a05b8a6aaafa309a87556e235b9

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 17 Jun 2013 20:53:54 +0000 (20:53 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I32973f48e15c917221cefe5d6d36a122e30cf706

10 years agoMerge "Do not output numberofviews, if $wgDisableCounters = true"
Parent5446 [Mon, 17 Jun 2013 19:22:23 +0000 (19:22 +0000)]
Merge "Do not output numberofviews, if $wgDisableCounters = true"

10 years agoDo not output numberofviews, if $wgDisableCounters = true
umherirrender [Mon, 17 Jun 2013 19:09:06 +0000 (21:09 +0200)]
Do not output numberofviews, if $wgDisableCounters = true

Follow up I9975dceedeffafadf560ed71238c51b94eb8c3ad
But now for the parser function

Change-Id: I18261b884b7f3be57a42c0b10594384fab6f9c9a

10 years agoMerge "Remove Selenium tests from core"
jenkins-bot [Mon, 17 Jun 2013 19:05:50 +0000 (19:05 +0000)]
Merge "Remove Selenium tests from core"

10 years agoMerge "jquery.makeCollapsible: cleanup"
jenkins-bot [Mon, 17 Jun 2013 18:44:49 +0000 (18:44 +0000)]
Merge "jquery.makeCollapsible: cleanup"

10 years agoPHPUnit now recognizes extension parser tests
Antoine Musso [Fri, 10 May 2013 19:20:12 +0000 (21:20 +0200)]
PHPUnit now recognizes extension parser tests

Parser tests are registeredd by appending one or more .txt files to the
$wgParserTestFiles global setting.  Since this is shared with MediaWiki
core, I have made MediaWikiParserTest a factory of PHPUnit testsuite
which would filter in/out extensions tests.

The `extensions` test suite now has a second test suite builder which is
simply a wrapper around MediaWikiParserTest factory.

Play cases:

  $ php phpunit.php --group Parser --tap

Runs any parser tests including the ones coming from extensions.

With an extension having parser tests such as Cite:

  $ php phpunit.php --testsuite extensions --tap
  // Extensions tests are run including parser tests.

bug: 42506
Change-Id: Icc3e9d30706b32149aa9dd18552e4241ec4af67e

10 years agoFixed mysql warning about expecting a resource.
Aaron Schulz [Sun, 16 Jun 2013 22:56:41 +0000 (15:56 -0700)]
Fixed mysql warning about expecting a resource.

Change-Id: I799d063fec7a8e96f49db34ce669453bd26c3fb3

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 16 Jun 2013 20:49:38 +0000 (20:49 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoMerge "Don't reinvent the wheel in SpecialRecentchangeslinked::getExtraOptions"
TheDJ [Sun, 16 Jun 2013 20:41:12 +0000 (20:41 +0000)]
Merge "Don't reinvent the wheel in SpecialRecentchangeslinked::getExtraOptions"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 16 Jun 2013 19:50:24 +0000 (19:50 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I352ed34fa912240395a72e84e60f19c42fe10fb3

10 years agoResourceLoader: Serve stylesheets with "Access-Control-Allow-Origin: *"
Derk-Jan Hartman [Sun, 21 Apr 2013 14:38:23 +0000 (16:38 +0200)]
ResourceLoader: Serve stylesheets with "Access-Control-Allow-Origin: *"

This allows Javascript to access our styling information (cssRules and
related cross domain protected dom information) even if it is hosted
on a different domain.

Bug: 25886
Change-Id: I8e05c13ae1a1589fd120d5c439b1a7128ce2b659

10 years agojquery.makeCollapsible: cleanup
MatmaRex [Sat, 23 Mar 2013 14:27:46 +0000 (15:27 +0100)]
jquery.makeCollapsible: cleanup

* Ensure correct handling of togglers which hook to multiple elements
  and elements which have multiple togglers
* Move the `options === undefined` check outside the loop
  per CR on I8dd4f0d0
* Get rid of the old private toggling functions for various kinds of
  toggles (obsoleted, but left alone, in Id3f457a8)
* Don't use separate logic for initial toggling of custom togglers
* Consistently use collapseText/expandText (uppercase T) instead of
  collapsetext/expandtext (lowercase t) where possible
* Adjust comments and whitespace

Change-Id: Id8ecd8f577fb4cd3f640a7830a85436a301b3e2c

10 years agofilebackend: throw exceptions during file iteration.
Aaron Schulz [Sun, 16 Jun 2013 06:01:47 +0000 (23:01 -0700)]
filebackend: throw exceptions during file iteration.

* This lets calling code be far more robust rather than just
  silently ignoring entries due to some temporary problem.

Change-Id: I3ce2ae34f6cff5e40a80b8da5688503a387ce2a6

10 years agoRemoved redundant doc comments.
Aaron Schulz [Sun, 16 Jun 2013 05:36:23 +0000 (22:36 -0700)]
Removed redundant doc comments.

Change-Id: Iced16c6d32ef0e4d58376ed3c092a500ec917446

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 15 Jun 2013 20:09:53 +0000 (20:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ice334feb284bd21c83c26ea92705a1345d10b225

10 years agoMerge "Cleaned up variable/type order in docs."
jenkins-bot [Fri, 14 Jun 2013 22:38:43 +0000 (22:38 +0000)]
Merge "Cleaned up variable/type order in docs."

10 years agoFix typo ('associed' => 'associated').
Ori Livneh [Fri, 14 Jun 2013 22:26:00 +0000 (15:26 -0700)]
Fix typo ('associed' => 'associated').

Change-Id: I5ea2eec92ebe397f2d269562f1650e59cb969a19

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 14 Jun 2013 21:59:39 +0000 (21:59 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoFixed doc typo
Aaron Schulz [Fri, 14 Jun 2013 21:14:59 +0000 (14:14 -0700)]
Fixed doc typo

Change-Id: I1e4ab410cd02a74e667cc8611e58ad791558896a

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 14 Jun 2013 21:05:13 +0000 (21:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If58755fdcfc3c12f16436c4a245a520cb037d994

10 years agoRemove Selenium tests from core
Chad Horohoe [Fri, 14 Jun 2013 20:20:09 +0000 (16:20 -0400)]
Remove Selenium tests from core

This never really worked properly, doesn't conform to coding
conventions, and isn't actually used by anyone for testing.

Our selenium stuff these days are in the qa/browsertests repo

Change-Id: I8f1efaa118fe41821fb3f4a6099d75a33681f17b

10 years ago(bug 47449) {{#special:}} should always return a usable title
Mormegil [Sat, 20 Apr 2013 12:42:22 +0000 (14:42 +0200)]
(bug 47449) {{#special:}} should always return a usable title

{{#special:}} should always return a usable title in NS_SPECIAL,
even when given an unknown special page title. Currently, it returns
"No such special page" text for such unknown names, which is
surprising.

Bug: 47449
Change-Id: I7f184956ec9d56c849f201f1230736fcedd0fadf

10 years agoMerge "Fix FOUC on preferences."
jenkins-bot [Fri, 14 Jun 2013 03:29:59 +0000 (03:29 +0000)]
Merge "Fix FOUC on preferences."

10 years agoMerge "(Bug 48952) Show debug output in toolbar"
jenkins-bot [Fri, 14 Jun 2013 03:14:38 +0000 (03:14 +0000)]
Merge "(Bug 48952) Show debug output in toolbar"

10 years agoAPI: Fix action=parse without any page or title or text
Brad Jorsch [Fri, 10 May 2013 15:59:11 +0000 (11:59 -0400)]
API: Fix action=parse without any page or title or text

action=parse was raising an error about missing 'text' with 'title' even
when 'title' wasn't actually passed, due to a fix for bug 33865. But
this broke using action=parse to parse an edit summary without also
giving it wikitext to parse.

Instead, let's give the client a warning (unless it seems clear they
know what they are doing) and assume the empty string for 'text'.

Also, while we're editing the file, add some more examples as also
requested in bug 48319.

Bug: 48319
Change-Id: I03c1fbcb0bd31dea8bd84e164104f7ced0ace449

10 years agoMerge "Added parsoid-only tests for parsoid's native cite implementation"
jenkins-bot [Thu, 13 Jun 2013 23:45:27 +0000 (23:45 +0000)]
Merge "Added parsoid-only tests for parsoid's native cite implementation"

10 years agoMade purgeDeletedFiles.php delete files still in the public zone.
Aaron Schulz [Wed, 12 Jun 2013 17:46:37 +0000 (10:46 -0700)]
Made purgeDeletedFiles.php delete files still in the public zone.

* This makes purges more useful since the file won't come back.
* This only applies for files that are confirmed to already be
  in the deleted zone too. This is for sanity.

Change-Id: I60316c1d9323347d09607e36a334fc5eb0b6a2e7

10 years agoAdded parsoid-only tests for parsoid's native cite implementation
Subramanya Sastry [Thu, 13 Jun 2013 23:36:05 +0000 (18:36 -0500)]
Added parsoid-only tests for parsoid's native cite implementation

Change-Id: If5cf091d7c6c864f6bd90165086a19ae38ec257e

10 years agoFix patrolling where NP patrol isn't explicitly enabled
Marius Hoch [Thu, 13 Jun 2013 23:04:57 +0000 (01:04 +0200)]
Fix patrolling where NP patrol isn't explicitly enabled

Hot fix! Follow-up fc5bcf1147f9

Change-Id: Iba7e70e1a1ddd9826f6e5f4022b88ccafc5f571d

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 13 Jun 2013 18:48:12 +0000 (18:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I4e12c5f98fb8da8d7b83e167363668b2504b26b2

10 years agoCleaned up variable/type order in docs.
Aaron Schulz [Thu, 13 Jun 2013 18:18:52 +0000 (11:18 -0700)]
Cleaned up variable/type order in docs.

* A few other minor doc cleanups and obvious type hints.

Change-Id: I454fad0c1942068b4f3632ebd1b605bfbb9dfe7c

10 years agoAPI: Fix IPv6 handling in list=blocks
Brad Jorsch [Mon, 6 May 2013 14:27:46 +0000 (10:27 -0400)]
API: Fix IPv6 handling in list=blocks

The current handling of the bkip parameter assumes IPv4, and breaks for
IPv6 CIDR ranges (it also isn't working right for IPv6 non-CIDR, but not
in an obvious way).

This rewrite handles IPv6 correctly. It also necessarily adds validation
for the bkip parameter, which would formerly return (not very sensible)
results when passed invalid values.

Bug: 48129
Change-Id: I02471bb32c3a217004d07a79d9f98b62133b31ef

10 years agoMerge "Add section preview mode to API action=parse"
jenkins-bot [Thu, 13 Jun 2013 13:50:38 +0000 (13:50 +0000)]
Merge "Add section preview mode to API action=parse"

10 years agoAvoid exceptions by first checking language code validity
Niklas Laxström [Tue, 11 Jun 2013 16:42:10 +0000 (16:42 +0000)]
Avoid exceptions by first checking language code validity

Bug: 49423
Change-Id: I3fd98ba08393856311a48fa40769027460c72ef9

10 years agoMerge "Ensure <h5> and <h6> have different computed font size"
jenkins-bot [Thu, 13 Jun 2013 06:40:36 +0000 (06:40 +0000)]
Merge "Ensure <h5> and <h6> have different computed font size"

10 years ago(Bug 48952) Show debug output in toolbar
physikerwelt [Mon, 3 Jun 2013 09:56:30 +0000 (09:56 +0000)]
(Bug 48952) Show debug output in toolbar

The debug output written with the function wfDebugLog should  be
printed to the debug toolbar in the same way as wfDebug does.

Change-Id: Ib979df080332e16c8e0e6a89eab8741986ab39c3

10 years agoPrepare DatabaseMysql for mysqli
Jakub Vrana [Fri, 3 May 2013 01:39:16 +0000 (18:39 -0700)]
Prepare DatabaseMysql for mysqli

PHP extensions mysql and mysqli have lots in common.
In order to support mysqli, this diff separates common MySQL behavior to abstract class DatabaseMysqlBase and implements the mysql-extension specific in DatabaseMysql.
Outside behavior remains the same.

I've tried to minimize future code duplication by introducing mysql*() methods even if the parent method just unwraps the result.

Bug: 45288
Change-Id: I905d4a4550377bc849a860f0962dad710d9dc71f

10 years agoFixme comment for bug 49504
Tim Starling [Wed, 12 Jun 2013 23:21:18 +0000 (09:21 +1000)]
Fixme comment for bug 49504

Change-Id: Ie229e84b299c357cfe9a2db0a5ba07713aac7597

10 years agoAdd section preview mode to API action=parse
Max Semenik [Wed, 12 Jun 2013 22:46:04 +0000 (02:46 +0400)]
Add section preview mode to API action=parse

In https://gerrit.wikimedia.org/r/#/c/67266/, it was enabled automatically
when a section was specified in preview mode. However, this only works for
previews of a saved page's content, failing for user input previews which
might contain several sections of various degrees of nestedness.

Change-Id: I987144e5e315ed9e0a67f599083461a78879c0df

10 years agoMerge "Remove non UTF-8 chars from debug output"
jenkins-bot [Wed, 12 Jun 2013 21:01:44 +0000 (21:01 +0000)]
Merge "Remove non UTF-8 chars from debug output"