lhc/web/wiklou.git
11 years agoMerge "Make PatrolLog::record() use RecentChange::getTitle(); no need to create a...
Nikerabbit [Tue, 3 Jul 2012 07:57:24 +0000 (07:57 +0000)]
Merge "Make PatrolLog::record() use RecentChange::getTitle(); no need to create a new object itself."

11 years agoMerge "Use LogEntry to add new undeletion log entries."
Nikerabbit [Tue, 3 Jul 2012 07:45:36 +0000 (07:45 +0000)]
Merge "Use LogEntry to add new undeletion log entries."

11 years ago(bug 36495) Sanitizer: Convert align to margin/float outside tables.
Max Semenik [Fri, 29 Jun 2012 16:24:20 +0000 (20:24 +0400)]
(bug 36495) Sanitizer: Convert align to margin/float outside tables.

Change-Id: I108cbd100cff6bade011b14d74b5bca82f2a1e5f

11 years agoMerge "(bug 35082) addPortletLink incorrectly adds to mutiple <ul> tags"
Timo Tijhof [Mon, 2 Jul 2012 20:22:52 +0000 (20:22 +0000)]
Merge "(bug 35082) addPortletLink incorrectly adds to mutiple <ul> tags"

11 years ago(bug 35082) addPortletLink incorrectly adds to mutiple <ul> tags
Timo Tijhof [Thu, 7 Jun 2012 21:06:49 +0000 (23:06 +0200)]
(bug 35082) addPortletLink incorrectly adds to mutiple <ul> tags

* cleaned up tags <ul> creation (no need to create it and then
  find() it. Might as well grab a hold of it before insertion).

* Fixed bug by adding ".eq( 0 )"

* Added unit test for it
  (which fails without the fix in mediawiki.util.js)

Change-Id: I51e9053292f03c1b833db0df2fb1b40f1eaf8b1a

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 2 Jul 2012 20:04:10 +0000 (20:04 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 2 Jul 2012 19:50:36 +0000 (19:50 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I285b3b3c1735d4589a5f18ee439f8bbd06bfe96f

11 years agoTests: Fix race-condition broken mw.loader unit test
Timo Tijhof [Fri, 29 Jun 2012 08:34:12 +0000 (10:34 +0200)]
Tests: Fix race-condition broken mw.loader unit test

* testloader.php was resolving dependencies when it shouldn't
  the server *never* does that. That's handled by the client, which
  knows the state of what is and isn't module.

  Due to a race condition between:
  - handlePending() call from loader.state() call for
    load.phpmodules?=testMissing
  - asynchronous callback from mw.loader.using as dependencies
    are being resolved.

  It didn't expose any actual problem, the unit test was simply
  assuming that they would arrive in a certain order, when that isn't
  the case by design.

  Random failures are seen here:
  - https://integration.mediawiki.org/testswarm/user/mediawiki/
  - http://integration.wmflabs.org/testswarm/job/4

  > Module "test.missing" must have state "missing"
  > - "missing"
  > + "loading"
  -> Because callback was triggered from mw.loader.state() already
     it didn't get to the implement() call yet.

  > Module "test.use_missing" must have state "error"
  > - "error"
  > + "loading"
  -> (same reason)

  This is now fixed.

* Greatly simplified the mock load.php

Change-Id: I000ee726a062f6c6d630ad6c07cfc0b48d145d35

11 years agoDefaultSettings: Clean up "URLs and file paths" section.
Timo Tijhof [Mon, 25 Jun 2012 18:06:51 +0000 (20:06 +0200)]
DefaultSettings: Clean up "URLs and file paths" section.

* Moved other Path/Dir variables to here
 - wgScript
 - wgRedirectScript
 - wgLoadScript
 - wgFileCacheDirectory

* Moved others out to their relevant sections
 - wgUploadStashMaxAge

* Removed repetitive "Will .. in Setup.php." this is already made
  clear in the section header.

* Minor spacing correction.

Change-Id: Ic50bbb222eecfb2e588aad5e48f87646dc763cbb

11 years agoUse LogEntry to add new undeletion log entries.
Alexandre Emsenhuber [Mon, 2 Jul 2012 18:33:08 +0000 (20:33 +0200)]
Use LogEntry to add new undeletion log entries.

* Group global declaration at the top of the function
* Pass the user doing the undeletion to PageArchive::undelete()

Change-Id: Ieba7d1c277e6faf2b2ff11479b1f4a930916e79c

11 years agoMerge "Use ManualLogEntry instead of LogPage to add a new log entry of old file versi...
Nikerabbit [Mon, 2 Jul 2012 14:19:56 +0000 (14:19 +0000)]
Merge "Use ManualLogEntry instead of LogPage to add a new log entry of old file version deletion."

11 years agoHandle client disconnects in scoped timeout blocks.
Aaron Schulz [Sun, 1 Jul 2012 19:21:10 +0000 (12:21 -0700)]
Handle client disconnects in scoped timeout blocks.

Change-Id: I9de9c84aad1befafc9907773dcb1f6ec45978fe9

11 years agoMerge "Link to CREDITS file on message 'version-poweredby-others'"
Hashar [Mon, 2 Jul 2012 12:24:39 +0000 (12:24 +0000)]
Merge "Link to CREDITS file on message 'version-poweredby-others'"

11 years agoRevert "(bug 32297) Use symbolic names, not offsets for a default timezone."
Antoine Musso [Mon, 2 Jul 2012 11:11:01 +0000 (13:11 +0200)]
Revert "(bug 32297) Use symbolic names, not offsets for a default timezone."

This reverts commit 3056b8dfd261f7fe431b5c634f691571835f5941.

Change-Id: I29cf9a5389709b30f869072ed836cb5b85ba5106

11 years ago(bug 36788) Add classes to containing row on watchlist/history
Brad Jorsch [Sat, 12 May 2012 03:33:04 +0000 (23:33 -0400)]
(bug 36788) Add classes to containing row on watchlist/history

Each line on the watchlist and on the history pages should have a
specific class to indicate the "updated since my last visit" status,
to allow for more comprehensive styling than is possible with individual
elements embedded within the line.

Also some cleanup: turn the $classes variable in the enhanced watchlist
code path into an array, and change the bolding of titles in the
watchlist from <strong> tags to styling via CSS.

Change-Id: I90bc95db061274d4de782578a4e91f954481adfd

11 years agoUse ManualLogEntry instead of LogPage to add a new log entry of old file version...
Alexandre Emsenhuber [Sun, 1 Jul 2012 20:09:11 +0000 (22:09 +0200)]
Use ManualLogEntry instead of LogPage to add a new log entry of old file version deletion.

* For consistency with WikiPage::doDeleteArticleReal().
* Also log suppressed deletions in suppression log instead of normal log.

Change-Id: Ie63bac5ebd77d0269ba2075d66cf3ba31668e595

11 years ago(bug 31777) Upload unknown error ``fileexists-forbidden''
umherirrender [Sun, 17 Jun 2012 20:31:08 +0000 (22:31 +0200)]
(bug 31777) Upload unknown error ``fileexists-forbidden''

adding messages to ApiBase::$messageMap and to message files for client
side localisation

Change-Id: I37e03130c6b90e4614514cd76b73eab6890eb82f

11 years agoMerge "remove user right 'upload_by_url' from sysop by default"
Siebrand [Sun, 1 Jul 2012 16:10:26 +0000 (16:10 +0000)]
Merge "remove user right 'upload_by_url' from sysop by default"

11 years agoMerge "Expose the log_id of the deletion log entry in the action=delete API"
Siebrand [Sun, 1 Jul 2012 15:55:29 +0000 (15:55 +0000)]
Merge "Expose the log_id of the deletion log entry in the action=delete API"

11 years agoMerge "(bug 32297) Use symbolic names, not offsets for a default timezone."
Siebrand [Sun, 1 Jul 2012 15:10:08 +0000 (15:10 +0000)]
Merge "(bug 32297) Use symbolic names, not offsets for a default timezone."

11 years agoMerge "Make LogFormatter::msg() use RequestContext::msg() instead of reinventing...
Siebrand [Sun, 1 Jul 2012 15:07:38 +0000 (15:07 +0000)]
Merge "Make LogFormatter::msg() use RequestContext::msg() instead of reinventing the wheel and making everything itself."

11 years agoMerge "(bug 32348) Allow descending order for list=alllinks"
Siebrand [Sun, 1 Jul 2012 15:03:20 +0000 (15:03 +0000)]
Merge "(bug 32348) Allow descending order for list=alllinks"

11 years agoMerge "- Make the require_once independent of the current path / include_path. -...
Siebrand [Sun, 1 Jul 2012 14:54:05 +0000 (14:54 +0000)]
Merge "- Make the require_once independent of the current path / include_path. - Avoid duplicating ResourceLoaderContext::expandModuleNames() code. - Passed $modules as a parameter."

11 years agoMerge "Special:EditWatchlist/raw now make use of GenderCache"
Siebrand [Sun, 1 Jul 2012 14:43:25 +0000 (14:43 +0000)]
Merge "Special:EditWatchlist/raw now make use of GenderCache"

11 years agoMerge "Bug 36453 - Provide the git info on action=query&meta=siteinfo"
Siebrand [Sun, 1 Jul 2012 14:22:59 +0000 (14:22 +0000)]
Merge "Bug 36453 - Provide the git info on action=query&meta=siteinfo"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 1 Jul 2012 13:05:28 +0000 (13:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib350fbdffc2246830f418a122f3d417b36e07c22

11 years agoMake PatrolLog::record() use RecentChange::getTitle(); no need to create a new object...
Alexandre Emsenhuber [Sat, 30 Jun 2012 19:27:41 +0000 (21:27 +0200)]
Make PatrolLog::record() use RecentChange::getTitle(); no need to create a new object itself.

Change-Id: I5b8f58cf03669768132c64aafa3a968e198a7f73

11 years agoLink to CREDITS file on message 'version-poweredby-others'
Liangent [Sat, 30 Jun 2012 05:22:14 +0000 (13:22 +0800)]
Link to CREDITS file on message 'version-poweredby-others'

Change-Id: Ia02c3bcf773e08c94c9333528c6bc364310a34b7

11 years agoDeprecated Title::userIsWatching(); use User::isWatched() instead.
Alexandre Emsenhuber [Sat, 9 Jun 2012 21:16:15 +0000 (23:16 +0200)]
Deprecated Title::userIsWatching(); use User::isWatched() instead.

* The problem is that Title::userIsWatching() relies on $wgUser,
  which is not suitable on every case. Instead User::isWatched()
  requires both an User and a Title object.
* Replaced all core calls from the former to the latter
* Added a cache in User for the WatchedItem instances so we do not
  need to do a database request every time something want to know
  whether a page is watched or not, which can happen several times
  per request.

Change-Id: Ifa9c55b7ffb487ce6893c74df233eedc7654dc5e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 29 Jun 2012 20:05:18 +0000 (20:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I68aefd2910275acf62c37b9caa9bd65829b5df89

11 years agoBug 36453 - Provide the git info on action=query&meta=siteinfo
Max Semenik [Fri, 29 Jun 2012 20:04:42 +0000 (00:04 +0400)]
Bug 36453 - Provide the git info on action=query&meta=siteinfo

Change-Id: I3d6c79d0d2cafd533f39e255940869087778d884

11 years agoMerge "Rename getCopyWarn() to getCopyrightWarning() and make it public and static"
Aaron Schulz [Fri, 29 Jun 2012 19:10:46 +0000 (19:10 +0000)]
Merge "Rename getCopyWarn() to getCopyrightWarning() and make it public and static"

11 years agoImprove names of factory methods in ORMTable. Now its clear that they create rows...
jeroendedauw [Fri, 29 Jun 2012 18:56:44 +0000 (20:56 +0200)]
Improve names of factory methods in ORMTable. Now its clear that they create rows and not tables

Change-Id: Ia83c7c81f4ddd6d3304273094553c31c67fe85c8

11 years agoActually we have many contributors
Chad Horohoe [Fri, 29 Jun 2012 11:54:47 +0000 (07:54 -0400)]
Actually we have many contributors

Change-Id: Ida79604df4eade77bc0704c52937d8507c8be2fe

11 years agoResourceLoader.php: Fix E_NOTICE
Timo Tijhof [Fri, 29 Jun 2012 08:40:28 +0000 (10:40 +0200)]
ResourceLoader.php: Fix E_NOTICE

* Follows-up d3286132461554a949d11e07bfba2aaea025608a

Change-Id: Idc2da99c941047a3f5e345457fd7b71cdf417257

11 years agoMerge "[FileBackend] Rewrote FileBackendStoreShardListIterator to actually work."
Tim Starling [Fri, 29 Jun 2012 06:23:42 +0000 (06:23 +0000)]
Merge "[FileBackend] Rewrote FileBackendStoreShardListIterator to actually work."

11 years ago(bug 36812) SpecialActiveUsers: Use right instead of group for bots.
Platonides [Sun, 13 May 2012 13:51:28 +0000 (15:51 +0200)]
(bug 36812) SpecialActiveUsers: Use right instead of group for bots.

Test with:
* $wgGroupPermissions['script'] = $wgGroupPermissions['bot'];
* Add a user to it that made an edit recently
* With this fix it will be hidden on SpecialActiveUsers?hidebots=1
  without it will remain visible.

Change-Id: Ie0b88d7982a3d111c6ba6c456cfc02229f1339df

11 years agoMerge "mediawiki.special.preferences: Support Back/Forward navigation"
Krinkle [Fri, 29 Jun 2012 02:37:37 +0000 (02:37 +0000)]
Merge "mediawiki.special.preferences: Support Back/Forward navigation"

11 years agomediawiki.special.preferences: Support Back/Forward navigation
Joan Creus [Sat, 14 Apr 2012 06:45:06 +0000 (08:45 +0200)]
mediawiki.special.preferences: Support Back/Forward navigation

The current preferences tabbed dialog already uses hashes to identify
different tab sections, but using the browser's Back or Forward
button had no effect.

Added an event listener to the browser 'hashchange' event, so
that when the hash changes (as a result of using Back/Forward), the
display switched to the desired section.

If on the 'hashchange' event the hash is empty, it opens up the first
tab (just like the default when loading plain Special:Preferences
without a hash).

If the hash does not correspond to any section, nothing happens (this
can happen when the user follows an old hash-link to an tab that no
longer exists, in that case we need not do anything as the first tab
is visible by default). Another thing that can cause this is when the
page is already opened and some other component is using the hashes
for something. So we don't want to force a switch to the first tab
either.

Removed duplication of code by introducing function switchPrefTab().

Tested:
- Loading to a hash value
- Switching tabs
- Pressing Back/Forward
in:
* Chrome 19: OK
* Safari 5.1: OK
* Firefox 12: OK
* Opera 11.1: OK
* Opera 11.5: OK
* Opera 11.6: OK

Change-Id: Ic51c3954884680496f76814eed3fe65c9d0daacc

11 years agoCleanup: Fix repeated array casting, fix variable name conflict
Timo Tijhof [Fri, 29 Jun 2012 00:52:09 +0000 (02:52 +0200)]
Cleanup: Fix repeated array casting, fix variable name conflict

* No need to cast to array twice
* Should cast to array before doing count()
* Avoid variable name conflict in the for loop with the one outside
  the loop for clarity.

  No functional changes.

Change-Id: I93e7829e23372ea25e2f5123f7a990b6718663f3

11 years agoMerge "Use local context to get messages and time formatting methods of Language...
Siebrand [Thu, 28 Jun 2012 23:00:30 +0000 (23:00 +0000)]
Merge "Use local context to get messages and time formatting methods of Language class"

11 years agoMerge "Purge Squid variant pages based on page language (not $wgContLang)"
Aaron Schulz [Thu, 28 Jun 2012 22:23:42 +0000 (22:23 +0000)]
Merge "Purge Squid variant pages based on page language (not $wgContLang)"

11 years agoUse local context to get messages and time formatting methods of Language class
Alexandre Emsenhuber [Thu, 28 Jun 2012 09:31:55 +0000 (11:31 +0200)]
Use local context to get messages and time formatting methods of Language class

Also added ChangesList::formatCharacterDifference() to replace RecentChange::getCharacterDifference()
so that it's easier to pass a context object ChangesList::showCharacterDifference().

Change-Id: I345f46d2812ed6ee222ddd2dd085efbd4a1f6a36

11 years agoMerge "Add missing entry in autoloader for abstract test base class"
Siebrand [Thu, 28 Jun 2012 20:40:10 +0000 (20:40 +0000)]
Merge "Add missing entry in autoloader for abstract test base class"

11 years agoMerge "(bug 38024) Skip styles for modules that don't have stylesheets"
Brion VIBBER [Thu, 28 Jun 2012 20:05:56 +0000 (20:05 +0000)]
Merge "(bug 38024) Skip styles for modules that don't have stylesheets"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 28 Jun 2012 19:57:24 +0000 (19:57 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "mediawiki.jqueryMsg: Fix double-escaped attributes in the parser"
Krinkle [Thu, 28 Jun 2012 19:48:47 +0000 (19:48 +0000)]
Merge "mediawiki.jqueryMsg: Fix double-escaped attributes in the parser"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 28 Jun 2012 19:44:08 +0000 (19:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic6a089a54ed286aea326cbc445ade340e0749190

11 years agoMerge "Disable unneeded database requisite of generateRandomImages.php"
Aaron Schulz [Thu, 28 Jun 2012 18:04:57 +0000 (18:04 +0000)]
Merge "Disable unneeded database requisite of generateRandomImages.php"

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 ago(bug 38024) Skip styles for modules that don't have stylesheets
Timo Tijhof [Thu, 28 Jun 2012 13:10:39 +0000 (15:10 +0200)]
(bug 38024) Skip styles for modules that don't have stylesheets

* <s>Best viewed in IE 4 and with a 800x600 resolution.<s>
  Best viewed with -w due to additional indention.

* Saves number of <style> tags inserted, which in turn is good for
  IE's stupid stylesheet limit (bug 31676).

* Also saves a little bit of bandwidth by outputting
  {} instead of {"":""}.

Change-Id: I436a6a1c64452fc60a58fd9a478a2ac2b1328211

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 agomediawiki.jqueryMsg: Fix double-escaped attributes in the parser
Matthias Mullie [Sat, 26 May 2012 00:42:47 +0000 (17:42 -0700)]
mediawiki.jqueryMsg: Fix double-escaped attributes in the parser

E.g.: message: "Your feedback has been [$1 posted here]."
In mediawiki.jqueryMsg.js, L31, the parser would (rightfully) escape
XML entities in the parameter (a link) being assigned through $1

When actually adding the (already escaped) parameter as href-
attribute of the link-to-be-built, it'll automatically have its HTML
entities escaped once again (thus double-escaping &'s)

This patch will identify regular links and links with replacement-
url's in a different way; now the escaping can be moved to when the
variables are actually being replaced (for normal parameter
replacement) and can be processed differently (= not escaping) when
dealing with a link.

Tests:
 - Removed useless ok() tests. I accidentally introduced that pattern
   last year for no good reason. Slowly getting it out again. It
   either can't return false, or it tests unrelated things that have
   their own tests.
 - Simplified examples to reduce repetition of unrelated strings.
 - Improved assertion titles to better describe what is being tested
   to help find actual problems.
   (e.g. "Neutral from mw.user object" instead of
   "Gender neutral or unknown").

Change-Id: If060b75f5575f4c7c3a25e5280ae697171120e84

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 agoAdd missing entry in autoloader for abstract test base class
jeroendedauw [Wed, 27 Jun 2012 12:26:05 +0000 (14:26 +0200)]
Add missing entry in autoloader for abstract test base class

Change-Id: I44edbb02ae570f9c4b486c9f2c435bddb87e76d5

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 unneeded database requisite of generateRandomImages.php
Platonides [Tue, 26 Jun 2012 17:02:55 +0000 (19:02 +0200)]
Disable unneeded database requisite of generateRandomImages.php

Change-Id: I56a2d7baa21a6082e088db3e6a41381b92168eed

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