lhc/web/wiklou.git
11 years agoMerge "setting to completely override server hostname"
Aaron Schulz [Thu, 28 Jun 2012 18:03:45 +0000 (18:03 +0000)]
Merge "setting to completely override server hostname"

11 years agoMerge "helpers to get subjects/talk namespaces"
Aaron Schulz [Thu, 28 Jun 2012 17:54:03 +0000 (17:54 +0000)]
Merge "helpers to get subjects/talk namespaces"

11 years agoMerge "Choose parentids in tests as they are in real dumps"
Aaron Schulz [Thu, 28 Jun 2012 17:52:44 +0000 (17:52 +0000)]
Merge "Choose parentids in tests as they are in real dumps"

11 years agoMerge "xsd: fix id within contributor to allow 0"
Aaron Schulz [Thu, 28 Jun 2012 17:50:47 +0000 (17:50 +0000)]
Merge "xsd: fix id within contributor to allow 0"

11 years agoCompress images
Max Semenik [Thu, 28 Jun 2012 17:04:47 +0000 (21:04 +0400)]
Compress images

Change-Id: I3d0c3310fc7fe8938dc079cb7481d138ba42c2f6

11 years agoMerge "Math isn't in core, so no point having a TODO in core to do math tests. Just...
Demon [Thu, 28 Jun 2012 13:45:39 +0000 (13:45 +0000)]
Merge "Math isn't in core, so no point having a TODO in core to do math tests. Just sayin'..."

11 years agoFix broken console.error.call in IE9
Timo Tijhof [Thu, 28 Jun 2012 12:07:10 +0000 (14:07 +0200)]
Fix broken console.error.call in IE9

* It turns out IE9 throws up on console.error.call
  ("TypeError: Object does not property method 'call'.")
  Which is problematic since module handlers that catch exceptions
  and try to log them, now still get a global uncaught exception.
  Luckily it only affected users of IE9 that have DevTools installed
  locally -and- were on a page with module that throws an exception.

* Follows-up 4c80300499d783333e24331f7c5a368ecf24c3bf

* Now just not logging the exception object if there is no
  console.error. Pretty much every console has it, and when they
  don't, then having the exception object is likely not going to
  help either. Not to confuse with mw.log, which is elaborate
  cross-browser fallbacks and always shows all information in the
  browser somehow. This is for logging errors without debug mode.

Change-Id: I1bf6c6f963ca64182dd447bebc0e6751bce325ae

11 years agoMerge "Class renaming didn't went into change 12729"
Aaron Schulz [Thu, 28 Jun 2012 05:20:57 +0000 (05:20 +0000)]
Merge "Class renaming didn't went into change 12729"

11 years agoMerge "Reduced some master queries by adding flags to Revision functions."
Tim Starling [Thu, 28 Jun 2012 05:11:04 +0000 (05:11 +0000)]
Merge "Reduced some master queries by adding flags to Revision functions."

11 years agoRevert "Introduce a new hook that allows extensions to add to My Contributions".
Aaron Schulz [Thu, 28 Jun 2012 04:18:42 +0000 (21:18 -0700)]
Revert "Introduce a new hook that allows extensions to add to My Contributions".

In formatRow(): the hook change breaks FlaggedRevs, and also $ret may not
always be defined. The patch could use some extra work.

This reverts commit 0944502d4cc15356e42d5773e1478cb7ce5af30b

This reverts commit d0131e8a1914e76f220ade2cd723dc52bdb06ec9.

Change-Id: I05d980e19d99e1c461199705b04de9e307daa907

11 years agoReduced some master queries by adding flags to Revision functions.
Aaron [Wed, 23 May 2012 01:27:29 +0000 (18:27 -0700)]
Reduced some master queries by adding flags to Revision functions.

* The main Revision functions now allow various QoS and locking flags.
* Added tiny DBAO interface add made Revision implement it.
  Since a lot of objects will need (or have) the same functionality.
* Use "self" keyword in Revision class consistently.
* Made Revisison::newFromConds() private.

Change-Id: I3139956999218a2bb44b5c845b8079e33b2328bb

11 years agoMerge "Make HTMLFileCache also work when gzip is not enabled server-side."
Demon [Wed, 27 Jun 2012 21:22:35 +0000 (21:22 +0000)]
Merge "Make HTMLFileCache also work when gzip is not enabled server-side."

11 years agoMerge "Explicitely define $links as an array in SpecialBlock::postText()."
Demon [Wed, 27 Jun 2012 21:21:42 +0000 (21:21 +0000)]
Merge "Explicitely define $links as an array in SpecialBlock::postText()."

11 years agoMerge "Follow-up Idae8d920 (8c65834): no need to call getContext() and escape the...
Demon [Wed, 27 Jun 2012 21:17:22 +0000 (21:17 +0000)]
Merge "Follow-up Idae8d920 (8c65834): no need to call getContext() and escape the message."

11 years agoMerge "Disable the db LCStore if the maintenance script doesn't need a db."
Demon [Wed, 27 Jun 2012 21:10:53 +0000 (21:10 +0000)]
Merge "Disable the db LCStore if the maintenance script doesn't need a db."

11 years agoMerge "Proper check for false when checking parentid"
Demon [Wed, 27 Jun 2012 21:09:32 +0000 (21:09 +0000)]
Merge "Proper check for false when checking parentid"

11 years agoChoose parentids in tests as they are in real dumps
Christian Aistleitner [Wed, 27 Jun 2012 20:15:57 +0000 (22:15 +0200)]
Choose parentids in tests as they are in real dumps

Change-Id: Ib6e9e0a7bebce2a54c039dea16ddc2115776e777

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 27 Jun 2012 19:55:11 +0000 (19:55 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I4c10153e1d90c38a36fff9f55972cacb201ae7cb

11 years agoProper check for false when checking parentid
Christian Aistleitner [Wed, 27 Jun 2012 19:49:24 +0000 (21:49 +0200)]
Proper check for false when checking parentid

Change-Id: Ie7154fd3904ef5ed8bb3cecbd10ebddbb67e53f2

11 years agoMerge "debug start of jobs"
Aaron Schulz [Wed, 27 Jun 2012 18:40:10 +0000 (18:40 +0000)]
Merge "debug start of jobs"

11 years agodebug start of jobs
Antoine Musso [Wed, 27 Jun 2012 17:01:11 +0000 (19:01 +0200)]
debug start of jobs

We log a message whenever a job complete, regardless of its completion
status.  In some case, we might have very long running job that would
kill a jobrunner box, yet we would have no way to find out which jobs
were running on it.

This patch add a log entry before a job run is started.

This will double the traffic related to runJobs logs.

Change-Id: I20cb2cb69c7d125f7f531f3dadbac165b64a6998

11 years agoGroup definition list tests; add doc link
Gabriel Wicke [Wed, 27 Jun 2012 14:25:15 +0000 (16:25 +0200)]
Group definition list tests; add doc link

* Moved the new definition list tests close to the existing ones
* Added a link to the relevant bug and discussion to the documentation about
  differences in nested definition list handling between the PHP parser and
  Parsoid

Change-Id: I94fe59db33a242c505d5e82631ccdeef6155fb04

11 years agoMerge "Added several quote tests."
GWicke [Wed, 27 Jun 2012 13:13:32 +0000 (13:13 +0000)]
Merge "Added several quote tests."

11 years agoAdded several quote tests.
Subramanya Sastry [Tue, 26 Jun 2012 22:10:45 +0000 (17:10 -0500)]
Added several quote tests.

* Added tests by different quote sequence signatures -- primarily
  to stress parsoid in different situations and figure out/document
  where Parsoid needs to conform with PHP parser output and where
  it is acceptable to diverge.
* Some of these tests can likely be purged since they don't test
  anything beyond what is already tested elsewhere, but I haven't
  investigated that yet.  But, there is probably no harm in a few
  duplicated tests.

Change-Id: Id2c7b3ea4dac5f9e8f9b042b439061bf9faea9f2

11 years agoxsd: fix id within contributor to allow 0
Christian Aistleitner [Wed, 27 Jun 2012 09:31:41 +0000 (11:31 +0200)]
xsd: fix id within contributor to allow 0

Change-Id: I7a4a2c866fdecd282e5c287cdce26434331142ec

11 years agoMath isn't in core, so no point having a TODO in core to do math tests. Just sayin'...
Reedy [Tue, 26 Jun 2012 22:23:38 +0000 (23:23 +0100)]
Math isn't in core, so no point having a TODO in core to do math tests. Just sayin'...

Change-Id: I6eb1cf731b735a496cc734b8f2d8c2132b93c4ea

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 26 Jun 2012 20:47:12 +0000 (20:47 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I4b9d439598489e8d4bcf76a7fec4af95c3081e95

11 years agosetting to completely override server hostname
Antoine Musso [Fri, 11 May 2012 18:13:09 +0000 (11:13 -0700)]
setting to completely override server hostname

Labs has instances hostnames forged in sequences which make them not
that much useful for human readable output. Labs does publish a
meaningful instance name as an env variable though, so we could use it
to get better output.

This patch introduce $wgOverrideHostname (default false) which when
set will override the hostname returned by wfHostname().

Change-Id: Ibdba007cc4025fa0b0ebef39b5669c32852a95a7

11 years agohelpers to get subjects/talk namespaces
Antoine Musso [Tue, 26 Jun 2012 14:45:06 +0000 (16:45 +0200)]
helpers to get subjects/talk namespaces

Introduce two new methods to easily get array of namespaces indices
which are subjects or talks:

 MWNamespace::getSubjectNamespaces()
 MWNamespace::getTalkNamespaces()

Change-Id: I975db344afd97713521713a708368d37cd633c50

11 years agoMerge "fix typo's"
Reedy [Tue, 26 Jun 2012 20:08:53 +0000 (20:08 +0000)]
Merge "fix typo's"

11 years agoDisable the db LCStore if the maintenance script doesn't need a db.
Platonides [Tue, 26 Jun 2012 16:58:37 +0000 (18:58 +0200)]
Disable the db LCStore if the maintenance script doesn't need a db.

If $wgLanguageCode != 'en', loading of the language class will
go to the LCStore looking for the fallbacks, even if the script
doesn't need a database.

Change-Id: I6a1920ba02d146622f3a5647bf02ddec3e3da54b

11 years agoRemove punctuation from title.
Siebrand Mazeland [Tue, 26 Jun 2012 16:54:57 +0000 (18:54 +0200)]
Remove punctuation from title.

Follow up to Id8127299 / Change-Id: Id81272995627bf0f5bbef785230a8e6e4e8582ca

Change-Id: I480fa2fe13197444ed2757ecc192a897f51227b2

11 years agofix typo's
mlitn [Tue, 26 Jun 2012 15:43:38 +0000 (17:43 +0200)]
fix typo's

Change-Id: I2dda789683f34207e09e8b09ee0218285f708068

11 years agoTweaks to definition list tests & additional list tests
Subramanya Sastry [Tue, 26 Jun 2012 15:25:44 +0000 (10:25 -0500)]
Tweaks to definition list tests & additional list tests

* Tweaked definition list tests to make naming consistent.
* Formatted parsoid only test output to making html structure clear.
* Added explanation of why some parsoid only tests for defn. lists.
* Added a couple additional unordered list tests.

Change-Id: I305920c81fdf45db0bdb9dd8c394a220ff7814ce

11 years ago(bug 37627) generic exception for not logged in users
Antoine Musso [Fri, 22 Jun 2012 10:37:47 +0000 (12:37 +0200)]
(bug 37627) generic exception for not logged in users

We have various place in MediaWiki core and in extensions which are
showing anonymous user a very standard error page about them not being
logged in. Each developer ends up writing its own because we do not
provide a generic error, that is what this patch does.

This UserNotLoggedIn exception, when called, will show the usual
ErrorPage with a default title and default reason text. That makes it as
easy to use as doing:

 if( $user->isAnon() ) {
  throw new UserNotLoggedIn();
 }

One can override the default reason by passing a message key as the
first parameter:

 if( $user->isAnon() ) {
  throw new UserNotLoggedIn( 'nologin-reason-text' );
 }

In that case, the page title will still be the default 'Not Logged In.'

Change-Id: Id81272995627bf0f5bbef785230a8e6e4e8582ca

11 years agodocument ErrorPageError constructor parameters
Antoine Musso [Mon, 25 Jun 2012 22:06:58 +0000 (00:06 +0200)]
document ErrorPageError constructor parameters

ErrorPageError can receive either a message object or a message key

Change-Id: I8e51d802c2ab333fd61069a713c39dda0f418232

11 years agoMerge "Made LogEventsList extend ContextSource and use local context instead of globa...
Nikerabbit [Tue, 26 Jun 2012 12:02:15 +0000 (12:02 +0000)]
Merge "Made LogEventsList extend ContextSource and use local context instead of global variables there."

11 years agoMake HTMLFileCache also work when gzip is not enabled server-side.
Alexandre Emsenhuber [Tue, 26 Jun 2012 10:44:36 +0000 (12:44 +0200)]
Make HTMLFileCache also work when gzip is not enabled server-side.

In that case, it was just returning a blank page.

Change-Id: I08fbc5be37b5ee31504aae6af51b6cbebef44f29

11 years agoExplicitely define $links as an array in SpecialBlock::postText().
Alexandre Emsenhuber [Tue, 26 Jun 2012 09:09:53 +0000 (11:09 +0200)]
Explicitely define $links as an array in SpecialBlock::postText().

I know this doesn't change anything, but that's with stuff like this
we do get E_NOTICEs when suddenly there're no more items in the array.

Change-Id: I633d04297e756cc1e1cc74cd0e65ebf1cb6dfdd1

11 years agoMerge "Added several additional definition list tests."
GWicke [Tue, 26 Jun 2012 09:11:07 +0000 (09:11 +0000)]
Merge "Added several additional definition list tests."

11 years agoMerge "Added sanity check to WikiPage to avoid duplicate edits."
Tim Starling [Tue, 26 Jun 2012 06:12:53 +0000 (06:12 +0000)]
Merge "Added sanity check to WikiPage to avoid duplicate edits."

11 years agoMerge "[FileBackend] Changed copy script to use batches for concurrency."
Tim Starling [Tue, 26 Jun 2012 05:45:33 +0000 (05:45 +0000)]
Merge "[FileBackend] Changed copy script to use batches for concurrency."

11 years agoQUnit tests for custom language rules for various languages.
Santhosh Thottingal [Mon, 4 Jun 2012 09:40:16 +0000 (15:10 +0530)]
QUnit tests for custom language rules for various languages.

The language specific tests will be executed for the user language
(see also bug 37321).

Splitted from I4f3c7da84c4794fbe7bcbef52cfd49b1b7a3a521

Change-Id: I9b1c991d00f4af1d8ee409f65f123a006f0eb443

11 years agoAdded several additional definition list tests.
Subramanya Sastry [Tue, 26 Jun 2012 04:08:03 +0000 (23:08 -0500)]
Added several additional definition list tests.

* Some of these tests have been marked disabled so that the
  PHP parser doesn't test against them.  These tests are
  marked "(Parsoid only)".  The HTML output for these tests
  has been set to match Parsoid's output which differs from
  what the PHP parser outputs.

Change-Id: Ie19eb000bb74c6ec491f96cb7bf1460648ace030

11 years agoMerge "[LockManager] Added support for a default lock manager."
Hashar [Mon, 25 Jun 2012 22:57:45 +0000 (22:57 +0000)]
Merge "[LockManager] Added support for a default lock manager."

11 years agoMerge "ForeignAPIRepo now overwrite files when creating them."
Aaron Schulz [Mon, 25 Jun 2012 21:48:47 +0000 (21:48 +0000)]
Merge "ForeignAPIRepo now overwrite files when creating them."

11 years agoMade LogEventsList extend ContextSource and use local context instead of global varia...
Alexandre Emsenhuber [Sat, 16 Jun 2012 15:33:21 +0000 (17:33 +0200)]
Made LogEventsList extend ContextSource and use local context instead of global variables there.

Modified the constructor so that it simply needs a IContextSource in the first parameter, but it
still accepts a Skin object instead. The second parameter is now unused. Updated SpecialLog accordingly.

Change-Id: I6dde2a23d98568abe10e92f0761ae3be7c65a856

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 25 Jun 2012 20:11:12 +0000 (20:11 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I45e012c05d0ee83bb67a96568c563b94c0d5ea71

11 years agoForeignAPIRepo now overwrite files when creating them.
Antoine Musso [Mon, 25 Jun 2012 19:00:05 +0000 (21:00 +0200)]
ForeignAPIRepo now overwrite files when creating them.

* Use quickCreate() since it can be slightly faster for some backends.

Change-Id: Ic7b136f376b13fa84972c1a5eb66864d390ed1d1

11 years agoMerge "Introduce a new hook that allows extensions to add to My Contributions"
Catrope [Mon, 25 Jun 2012 18:04:25 +0000 (18:04 +0000)]
Merge "Introduce a new hook that allows extensions to add to My Contributions"

11 years agoChange "blocked" to "disabled" for consistency.
Siebrand Mazeland [Mon, 25 Jun 2012 17:25:57 +0000 (17:25 +0000)]
Change "blocked" to "disabled" for consistency.

Change-Id: I47bc69d034965a10635390f4c72d4b80b184f61e

11 years agoMerge "Change some NS_IMAGE to NS_FILE"
Reedy [Mon, 25 Jun 2012 13:55:27 +0000 (13:55 +0000)]
Merge "Change some NS_IMAGE to NS_FILE"

11 years agoMerge "JavaScriptMinifierTest: Increase test coverage"
Hashar [Mon, 25 Jun 2012 13:53:14 +0000 (13:53 +0000)]
Merge "JavaScriptMinifierTest: Increase test coverage"

11 years agoFix undefined variable from I55939bb5 (eb6df43).
Alexandre Emsenhuber [Fri, 22 Jun 2012 17:32:40 +0000 (19:32 +0200)]
Fix undefined variable from I55939bb5 (eb6df43).

Change-Id: I45c51b6b9b1901783526a548f9e7f237a6dfbf7e

11 years agoMerge "Bug 26911 - cli install doesn't ask for a password"
Demon [Mon, 25 Jun 2012 11:03:27 +0000 (11:03 +0000)]
Merge "Bug 26911 - cli install doesn't ask for a password"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 24 Jun 2012 20:02:37 +0000 (20:02 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I28724db80d166e3b814e695eff7dfe141985dc30

11 years agoChange some NS_IMAGE to NS_FILE
umherirrender [Sun, 24 Jun 2012 19:50:10 +0000 (21:50 +0200)]
Change some NS_IMAGE to NS_FILE

Change-Id: Id530c88d24df1a47a2f6565911184008b67fe04d

11 years agoClass renaming didn't went into change 12729
Platonides [Sat, 23 Jun 2012 21:04:57 +0000 (23:04 +0200)]
Class renaming didn't went into change 12729

Change-Id: I0e5eff79a41662c89d111eaf0f13c35d9a689dde

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 23 Jun 2012 20:09:38 +0000 (20:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I433613595aeda3fbb50b62563fa6265515544b8c

11 years agoMerge "Remove adittional type hinting stuff because PHP will die if its there >_>"
Aaron Schulz [Sat, 23 Jun 2012 19:39:23 +0000 (19:39 +0000)]
Merge "Remove adittional type hinting stuff because PHP will die if its there >_>"

11 years agoMerge "Use canonical parser option for linkupdate in api purge"
Aaron Schulz [Sat, 23 Jun 2012 19:32:03 +0000 (19:32 +0000)]
Merge "Use canonical parser option for linkupdate in api purge"

11 years agoMerge "Add missing __METHOD__ to select in LocalRepo"
Aaron Schulz [Sat, 23 Jun 2012 19:25:32 +0000 (19:25 +0000)]
Merge "Add missing __METHOD__ to select in LocalRepo"

11 years ago[LockManager] Added support for a default lock manager.
Aaron Schulz [Sat, 23 Jun 2012 18:26:46 +0000 (11:26 -0700)]
[LockManager] Added support for a default lock manager.

Change-Id: I730c8b078b9f3a0ad73b1b0887a8c991c9d81bde

11 years agoMerge "(follow-up) Fix "file not found" error in mediawiki.language."
Nikerabbit [Sat, 23 Jun 2012 18:45:39 +0000 (18:45 +0000)]
Merge "(follow-up) Fix "file not found" error in mediawiki.language."

11 years agoWikiPage::preSaveTransform() was deprecated in r103228 (018d885f)
Platonides [Sat, 23 Jun 2012 18:28:51 +0000 (20:28 +0200)]
WikiPage::preSaveTransform() was deprecated in r103228 (018d885f)

Hide the warning on the tests and add tests for the Parser method.

Change-Id: I939bf59206da1dd45e33db2251e92d9792a0a767

12 years agoBack out unreviewed commit 17d23282dd6d8b1bf6b1b80f97cf02265cbec59d
Krinkle [Sat, 23 Jun 2012 08:56:31 +0000 (08:56 +0000)]
Back out unreviewed commit 17d23282dd6d8b1bf6b1b80f97cf02265cbec59d

Change-Id: I8911140f7fe14105b6debb14686d87613b84a1ce

12 years ago(bug 37708) mw.Uri.clone() should make a deep copy.
Trevor Parscal [Fri, 22 Jun 2012 18:39:10 +0000 (11:39 -0700)]
(bug 37708) mw.Uri.clone() should make a deep copy.

Copies query properties (or any other object or array property) over with a deep copy by value.

Change-Id: I1c5644409c089e0a864292b8bd5a757ac31daa89

12 years agoBug 26911 - cli install doesn't ask for a password
Mark A. Hershberger [Fri, 22 Jun 2012 22:05:24 +0000 (18:05 -0400)]
Bug 26911 - cli install doesn't ask for a password

Make the password parameter mandatory and change the help message.

Change-Id: Ibea29858be70a5188d167b9c1267b2db2564a96b

12 years agoIntroduce a new hook that allows extensions to add to My Contributions
mlitn [Tue, 12 Jun 2012 21:02:00 +0000 (23:02 +0200)]
Introduce a new hook that allows extensions to add to My Contributions

Meanwhile also:
- refactored reallyDoQuery in Pager.php, to make outside intervention possible
- extend reallyDoQuery in SpecialContributions.php, adding in the hook and composing the final results array based on the combined results of all queries added through the hook
- remain backwards compatible on method-level
- fix FakeResultWrapper::fetchRow, which (contrary to ResultWrapper::fetchRow) didn't always return an array

Change-Id: I74c3784d6d93b992d72f2db24cc29f30e458c1e3

12 years agoAdd missing __METHOD__ to select in LocalRepo
umherirrender [Fri, 22 Jun 2012 22:40:20 +0000 (00:40 +0200)]
Add missing __METHOD__ to select in LocalRepo

Change-Id: Ice6d05227ab0149daa29a00f9441f5628618330c

12 years agoUse canonical parser option for linkupdate in api purge
umherirrender [Fri, 22 Jun 2012 22:25:33 +0000 (00:25 +0200)]
Use canonical parser option for linkupdate in api purge

This patch makes sure, that the links table updated against the
content language. This also enabled the limit report, which than
is also stored in the parser cache along with the html.

Change-Id: I2a0b09d7250813809f1b2a8cba3e4f53a6686002

12 years agoMerge "Moved JobQueue.php file to Job.php"
Brion VIBBER [Fri, 22 Jun 2012 22:20:07 +0000 (22:20 +0000)]
Merge "Moved JobQueue.php file to Job.php"

12 years agoMoved JobQueue.php file to Job.php
Aaron [Fri, 22 Jun 2012 22:15:21 +0000 (15:15 -0700)]
Moved JobQueue.php file to Job.php

Change-Id: I0c2fd3e4095a61db96b7165d1f9bf79fff51ea72

12 years agoMerge "API: Reset token cache on login, so API tests work"
Catrope [Fri, 22 Jun 2012 21:39:47 +0000 (21:39 +0000)]
Merge "API: Reset token cache on login, so API tests work"

12 years agoMerge "Make session persist between calls to doApiRequest"
Catrope [Fri, 22 Jun 2012 21:39:40 +0000 (21:39 +0000)]
Merge "Make session persist between calls to doApiRequest"

12 years agoMerge "Fix session handling in API test cases."
Catrope [Fri, 22 Jun 2012 21:35:48 +0000 (21:35 +0000)]
Merge "Fix session handling in API test cases."

12 years agoAPI: Reset token cache on login, so API tests work
daniel [Fri, 22 Jun 2012 20:37:26 +0000 (22:37 +0200)]
API: Reset token cache on login, so API tests work

Previously, logging in several times during a phpunit run would change the
session token, but keep the edit token, leasing to "bad token" failures for
all but the first login.

Change-Id: Iad49c990c5661d55cd907b8441addb74eb0ef694

12 years agoMake session persist between calls to doApiRequest
daniel [Fri, 22 Jun 2012 20:42:42 +0000 (22:42 +0200)]
Make session persist between calls to doApiRequest

Make sure the global session data in $wgRequest is used for doApiRequest
per default, and return it's content among with the request's results.

Previously, an empty session was used per default, and the local context's
session data would get out of sync with $wgRequest.

This change allows for the following assumptions to hold in test cases:

* within the same function, changes to the session made by one api call
  will be visible to subsequent api calls.

* the session data returned by doApiRequest is the actual status of the
  session as manipulated by the api call. This session data can be passed
  to subsequent api calls.

Note that the session data is still reset for every call to a test
function.

Change-Id: Ia20cf0ccfcdca736dd5da3444b14fbdd1c5def46

12 years ago(follow-up) Fix "file not found" error in mediawiki.language.
Timo Tijhof [Fri, 22 Jun 2012 20:23:10 +0000 (22:23 +0200)]
(follow-up) Fix "file not found" error in mediawiki.language.

* Follows-up f47dfe9939f7929f1e3fd1c501539cbd0d12373f, which forgot
  to remove the deleted files from the module definition as well.

exception 'MWException' with message 'ResourceLoaderFileModule::readScriptFiles: script file not found: "~/Development/mediawiki/core/resources/mediawiki.language/languages/nl.js"' in ~/Development/mediawiki/core/includes/resourceloader/ResourceLoaderFileModule.php:564
Stack trace:

Change-Id: Ib40d09071ba315da6b17fc94cca5746ed4c26342

12 years agoMerge "Switching to clearer pref label for Enhanced ChangesList"
Siebrand [Fri, 22 Jun 2012 19:39:25 +0000 (19:39 +0000)]
Merge "Switching to clearer pref label for Enhanced ChangesList"

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 22 Jun 2012 18:04:53 +0000 (18:04 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie53670c8253402108ac8daaef939d4a1bd7fe5f0

12 years agoAdded sanity check to WikiPage to avoid duplicate edits.
Aaron [Fri, 22 Jun 2012 17:47:54 +0000 (10:47 -0700)]
Added sanity check to WikiPage to avoid duplicate edits.

Change-Id: I9f5e38d701f60bed582290a7019b559d8415e348

12 years agoSwitching to clearer pref label for Enhanced ChangesList
Kaldari [Wed, 6 Jun 2012 07:11:01 +0000 (00:11 -0700)]
Switching to clearer pref label for Enhanced ChangesList

It's more significant that this pref affects watchlists than
the recent changes page, but right now it doesn't even mention that
it affects the watchlist at all.

Change-Id: I2fb05f74683ac3c88689a445d8b511c9358b3cf3

12 years agoMerge "(bug 36819) Lowercase be,csb,cu,dsb,hsb,rue,sgs,szl"
MaxSem [Fri, 22 Jun 2012 15:35:48 +0000 (15:35 +0000)]
Merge "(bug 36819) Lowercase be,csb,cu,dsb,hsb,rue,sgs,szl"

12 years agoMerge "Add passing ''italic'''s case to 'Unclosed and unmatched quotes' test"
Nikerabbit [Fri, 22 Jun 2012 12:58:57 +0000 (12:58 +0000)]
Merge "Add passing ''italic'''s case to 'Unclosed and unmatched quotes' test"

12 years agoMerge "Prefer console.error over console.log for exception logging"
Nikerabbit [Fri, 22 Jun 2012 12:41:06 +0000 (12:41 +0000)]
Merge "Prefer console.error over console.log for exception logging"

12 years agoMerge "Fix INSERT options for PostgreSQL for INSERT+SELECT"
Hashar [Fri, 22 Jun 2012 12:00:34 +0000 (12:00 +0000)]
Merge "Fix INSERT options for PostgreSQL for INSERT+SELECT"

12 years agoMerge "CSSMin: Clean up $remote trailing slash fix"
Hashar [Fri, 22 Jun 2012 11:58:30 +0000 (11:58 +0000)]
Merge "CSSMin: Clean up $remote trailing slash fix"

12 years ago(bug 23427) PAGEID magic word
Waldir Pimenta [Sat, 2 Jun 2012 16:58:31 +0000 (18:58 +0200)]
(bug 23427) PAGEID magic word

Please note on preview of a new page, this magic word will return 0 so
we have to set the vary-revision flag.

Change-Id: I11d42ca773ad84b73cc84f2c7dd2d09f1982d97a

12 years agoMerge "(bug 260) Handle <pre> overflow automatically with a scroll bar"
Timo Tijhof [Fri, 22 Jun 2012 03:40:51 +0000 (03:40 +0000)]
Merge "(bug 260) Handle <pre> overflow automatically with a scroll bar"

12 years ago(bug 260) Handle <pre> overflow automatically with a scroll bar
Timo Tijhof [Fri, 22 Jun 2012 03:33:49 +0000 (05:33 +0200)]
(bug 260) Handle <pre> overflow automatically with a scroll bar

And it took only 8 years!

* Ref:
 - bug 260
 - bug 414
 - bug 22060

Change-Id: I2e0494603af9e3a8351a8c61e9b814f0093e422b

12 years ago(bug 36819) Lowercase be,csb,cu,dsb,hsb,rue,sgs,szl
saper [Thu, 21 Jun 2012 22:42:47 +0000 (00:42 +0200)]
(bug 36819) Lowercase be,csb,cu,dsb,hsb,rue,sgs,szl

Follow up to gerrit change 7306:

https://gerrit.wikimedia.org/r/#/c/7306/

Lowercase some Central and Eastern European language
names (mostly Slavic and Samogitian, using lithuanian
rule).

'be-tarask' => "беларуская (тарашкевіца)", # Belarusian in Taraskievica orthography
  (as well as be-x-old)
'csb' => 'kaszëbsczi', # Cassubian
'cu' => 'словѣ́ньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ', # Old Church Slavonic (ancient language)
'dsb' => 'dolnoserbski', # Lower Sorbian
'hsb' => 'hornjoserbsce', # Upper Sorbian
'rue' => 'русиньскый', # Rusyn
'sgs' => 'žemaitėška', # Samogitian
'szl' => 'ślůnski', # Silesian

Change-Id: Ic0420299c9010f62d2a8fbfd6cb1d65c6b4b8413

12 years agoFix undefined property domain in AuthPlugin
Reedy [Thu, 21 Jun 2012 21:56:12 +0000 (22:56 +0100)]
Fix undefined property domain in AuthPlugin

[21-Jun-2012 20:35:17] PHP Notice:  Undefined property: AuthPlugin::$domain in /www/w/includes/AuthPlugin.php on line 92

Change-Id: I0c470b41881e0fd12d9615f7ac258feeff1a52e4

12 years agoFix session handling in API test cases.
daniel [Thu, 21 Jun 2012 20:25:37 +0000 (22:25 +0200)]
Fix session handling in API test cases.

* Use the API module's own context to check edit tokens.
* Use the global session if none is provided to doApiRequest.
* Fix ApiFlockTest to not pass an empty session, so the tokens from
  the global request can be used.

Change-Id: I2bff2390f43beb984b1b451bcf4e41271b2f054f

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 21 Jun 2012 20:22:17 +0000 (20:22 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If2ab7747d22cfc38a065c16697eaf5ace09ad400

12 years ago[LockManager] Added a memcached lock manager class.
Aaron [Wed, 20 Jun 2012 21:09:22 +0000 (14:09 -0700)]
[LockManager] Added a memcached lock manager class.

Change-Id: Ie99a7f1335bb5cceb0cb1c33a40094b3a22101ea

12 years agoAlias mw.action.watch.ajax to mw.page.watch.ajax
Catrope [Thu, 21 Jun 2012 18:23:50 +0000 (11:23 -0700)]
Alias mw.action.watch.ajax to mw.page.watch.ajax

This module was recently renamed, and we'll need the alias for caching
reasons

Change-Id: Ic0df459dfc1cca58f4e01325375c20c46091c89b

12 years agoFollowup to 2e089a4e5: rename watch to watchpage
Catrope [Thu, 21 Jun 2012 17:45:15 +0000 (10:45 -0700)]
Followup to 2e089a4e5: rename watch to watchpage

There is a jQuery bug causing events named 'watch' to break in Firefox

Change-Id: Ie44066bcb6fd84ee77551efa1ca40f5543126d2c

12 years agoSimplifying domain getting/setting
Ryan Lane [Thu, 21 Jun 2012 12:59:01 +0000 (14:59 +0200)]
Simplifying domain getting/setting

Adding a function to AuthPlugin for getting the user's domain. This allows the extension to determine how the user's domain is get and set, rather than core.

Change-Id: Ib2414bd55dfde67f7caf6439680fa88d9266e991

12 years agoMerge "Bug 37705 - ucfirst for sidebar interlanguage links"
Siebrand [Thu, 21 Jun 2012 12:22:20 +0000 (12:22 +0000)]
Merge "Bug 37705 - ucfirst for sidebar interlanguage links"