lhc/web/wiklou.git
11 years agoMerge "refactor Database::makeSelectOptions"
jenkins-bot [Sat, 2 Feb 2013 00:14:08 +0000 (00:14 +0000)]
Merge "refactor Database::makeSelectOptions"

11 years agoMerge "New list and table attr. tests based on recent Parsoid bug fixes."
GWicke [Fri, 1 Feb 2013 22:59:59 +0000 (22:59 +0000)]
Merge "New list and table attr. tests based on recent Parsoid bug fixes."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 1 Feb 2013 22:01:22 +0000 (22:01 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I039071abeaa87e70cb8d1156238f127a5aec956d

11 years agoNew list and table attr. tests based on recent Parsoid bug fixes.
Subramanya Sastry [Fri, 1 Feb 2013 21:00:55 +0000 (15:00 -0600)]
New list and table attr. tests based on recent Parsoid bug fixes.

Change-Id: I51620f2dcf8d6d4cd4aebf658bef2cef2232bd39

11 years agoAdd column job_attempts and index job_cmd_token_id to PostgreSQL.
Tim Landscheidt [Wed, 26 Dec 2012 03:56:17 +0000 (03:56 +0000)]
Add column job_attempts and index job_cmd_token_id to PostgreSQL.

* (bug 43416) This ports cd000590ee694af73edb05b5e37b60b5e2b77fd5.

Change-Id: I3d4c7d906f6465b3a054df2fc0cd8f564173ed2b

11 years ago[LockManager] Renamed getBucketFromKey() -> getBucketFromPath().
Aaron Schulz [Fri, 1 Feb 2013 18:55:07 +0000 (10:55 -0800)]
[LockManager] Renamed getBucketFromKey() -> getBucketFromPath().

Change-Id: I825dcd255f0b85f81bf925abf46bc46b1fe42e9f

11 years agoMerge "Profiling for hook calls."
jenkins-bot [Fri, 1 Feb 2013 18:53:27 +0000 (18:53 +0000)]
Merge "Profiling for hook calls."

11 years ago[LockManager] Generallized wiki field to a domain field.
Aaron Schulz [Fri, 1 Feb 2013 18:29:10 +0000 (10:29 -0800)]
[LockManager] Generallized wiki field to a domain field.

* In some cases (like certain qualified file backends), a domain
  may be desired that is not simple a wiki ID.
* Also added a LockManangerGroup::config() function to export
  the configuration of a lock manager.

Change-Id: I5a75c55be3cc9017ed8a717d6d30e466fd00340f

11 years agoMerge "Fixed use of long memcached keys in AllPages."
jenkins-bot [Fri, 1 Feb 2013 18:16:09 +0000 (18:16 +0000)]
Merge "Fixed use of long memcached keys in AllPages."

11 years agoMerge "[FileBackend] Added more documentation."
jenkins-bot [Fri, 1 Feb 2013 18:11:05 +0000 (18:11 +0000)]
Merge "[FileBackend] Added more documentation."

11 years agoMerge "[LockManager] Updated DBLockManager for cross-wiki support."
jenkins-bot [Fri, 1 Feb 2013 18:06:04 +0000 (18:06 +0000)]
Merge "[LockManager] Updated DBLockManager for cross-wiki support."

11 years agoMerge "[LockManager] Split QuorumLockManager into its own file."
jenkins-bot [Fri, 1 Feb 2013 18:04:13 +0000 (18:04 +0000)]
Merge "[LockManager] Split QuorumLockManager into its own file."

11 years agoMerge "Log profiling info from maintenance scripts."
jenkins-bot [Fri, 1 Feb 2013 18:02:05 +0000 (18:02 +0000)]
Merge "Log profiling info from maintenance scripts."

11 years agoAdd return to HttpError::getStatusCode.
daniel [Fri, 1 Feb 2013 15:17:12 +0000 (16:17 +0100)]
Add return to HttpError::getStatusCode.

Oops...

Change-Id: I4fb5bd11be340870d903d62e1329b1181f72e695

11 years agoProfiling for hook calls.
daniel [Thu, 31 Jan 2013 14:39:37 +0000 (15:39 +0100)]
Profiling for hook calls.

This is similar to profiloing for db queries.

Change-Id: I14051f8aff30d249f4197270337e4080adfa5417

11 years agoLog profiling info from maintenance scripts.
daniel [Thu, 31 Jan 2013 14:36:29 +0000 (15:36 +0100)]
Log profiling info from maintenance scripts.

Previously, maintenance scripts did not log profiling info.

Change-Id: Ib63dd54b815cca774cd764f28505f9dbdfd02cfc

11 years ago[LockManager] Split QuorumLockManager into its own file.
Aaron Schulz [Fri, 1 Feb 2013 06:28:55 +0000 (22:28 -0800)]
[LockManager] Split QuorumLockManager into its own file.

Change-Id: Ib487a39b04ac9de3449695ac388c95ae45933469

11 years ago[FileBackend] Added more documentation.
Aaron Schulz [Fri, 1 Feb 2013 06:06:57 +0000 (22:06 -0800)]
[FileBackend] Added more documentation.

Change-Id: I6a0f0dc253fbe82a58345d4179248071062286ff

11 years ago[LockManager] Updated DBLockManager for cross-wiki support.
Aaron Schulz [Fri, 1 Feb 2013 02:26:24 +0000 (18:26 -0800)]
[LockManager] Updated DBLockManager for cross-wiki support.

Change-Id: If02274a3173463ce66037221f494a1ee68ffa51d

11 years agoMade nextJobDB.php respect $wgJobTypesExcludedFromDefaultQueue.
Aaron Schulz [Thu, 31 Jan 2013 03:27:53 +0000 (19:27 -0800)]
Made nextJobDB.php respect $wgJobTypesExcludedFromDefaultQueue.

Change-Id: I22de34fc7be7b701180511fad3c16154ffdf638b

11 years agoMerge "(bug 5346) Make cats which are redirects italic in category links."
jenkins-bot [Thu, 31 Jan 2013 21:21:38 +0000 (21:21 +0000)]
Merge "(bug 5346) Make cats which are redirects italic in category links."

11 years ago(bug 5346) Make cats which are redirects italic in category links.
Brian Wolff [Thu, 27 Dec 2012 08:24:36 +0000 (04:24 -0400)]
(bug 5346) Make cats which are redirects italic in category links.

Due to bug 3311, redirects in category namespace don't work.
Furthermore they appear blue, and there is no indication anything
is wrong. This change makes the link italic to indicate to the
user that it is not a normal redirect. Only links in the
category links section of the page are affected

My only concern with this is potentially italics might not be
approrpriate in non-english languages (??). One of the main
reasons for italics is that a different colour is a larger
departure from current ui where link colours have meaning
and we already use italics for redirects on category pages,
and special:allpages.

Change-Id: I1fba042ca301844b603759c2db2cab28c3297e93

11 years agoMerge "bug 44136: Don't rollback after successful commit"
jenkins-bot [Thu, 31 Jan 2013 21:05:25 +0000 (21:05 +0000)]
Merge "bug 44136: Don't rollback after successful commit"

11 years agoMerge "Force case-sensitivity on the LIKE operator, to ensure similar behaviour betwe...
jenkins-bot [Thu, 31 Jan 2013 20:49:56 +0000 (20:49 +0000)]
Merge "Force case-sensitivity on the LIKE operator, to ensure similar behaviour between MySQL and SQLite"

11 years agoMerge "Fix self link issues about titles in different or mixed variants"
jenkins-bot [Thu, 31 Jan 2013 20:46:49 +0000 (20:46 +0000)]
Merge "Fix self link issues about titles in different or mixed variants"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 31 Jan 2013 20:46:38 +0000 (20:46 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Followup I888c616e: one more string to localize."
jenkins-bot [Thu, 31 Jan 2013 20:39:27 +0000 (20:39 +0000)]
Merge "Followup I888c616e: one more string to localize."

11 years agoMerge "Avoid raw SQL queries in Maintenance::purgeRedundantText()"
jenkins-bot [Thu, 31 Jan 2013 20:28:19 +0000 (20:28 +0000)]
Merge "Avoid raw SQL queries in Maintenance::purgeRedundantText()"

11 years agoMerge "Followup I888c616e: Keep IRC line format unchanged."
jenkins-bot [Thu, 31 Jan 2013 20:23:34 +0000 (20:23 +0000)]
Merge "Followup I888c616e: Keep IRC line format unchanged."

11 years agoFixed use of long memcached keys in AllPages.
Aaron Schulz [Thu, 31 Jan 2013 20:23:16 +0000 (12:23 -0800)]
Fixed use of long memcached keys in AllPages.

Change-Id: I1df841aff02aa6de5c9e51008f36e745824da567

11 years agoMerge "api: remove duplicate __contruct calls"
jenkins-bot [Thu, 31 Jan 2013 20:19:14 +0000 (20:19 +0000)]
Merge "api: remove duplicate __contruct calls"

11 years agoMerge "fix hardcoded quote in Special:DoubleRedirects/BrokenRedirects"
jenkins-bot [Thu, 31 Jan 2013 20:17:20 +0000 (20:17 +0000)]
Merge "fix hardcoded quote in Special:DoubleRedirects/BrokenRedirects"

11 years agoMerge "Changed Message::content() to pass $this to MessageContent."
jenkins-bot [Thu, 31 Jan 2013 20:15:14 +0000 (20:15 +0000)]
Merge "Changed Message::content() to pass $this to MessageContent."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 31 Jan 2013 20:12:34 +0000 (20:12 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I1615132bf185ebaa387ec2a3216137750d4d74e2

11 years agofix some spacing
umherirrender [Mon, 28 Jan 2013 21:11:10 +0000 (22:11 +0100)]
fix some spacing

Change-Id: I2a59eb22bb8acf01b560507a48d6be55d9c87de7

11 years agoMerge "Genderize user namespace for 'be' locale"
jenkins-bot [Thu, 31 Jan 2013 19:58:11 +0000 (19:58 +0000)]
Merge "Genderize user namespace for 'be' locale"

11 years agoMerge "Make Sites::singleton() actually return a singleton."
jenkins-bot [Thu, 31 Jan 2013 15:16:56 +0000 (15:16 +0000)]
Merge "Make Sites::singleton() actually return a singleton."

11 years agoMerge "Add getters to HttpError, to use it in tests."
jenkins-bot [Thu, 31 Jan 2013 15:15:05 +0000 (15:15 +0000)]
Merge "Add getters to HttpError, to use it in tests."

11 years agoMake Sites::singleton() actually return a singleton.
daniel [Thu, 31 Jan 2013 14:33:22 +0000 (15:33 +0100)]
Make Sites::singleton() actually return a singleton.

Sites::singleton() was returning a new instance for every call,
rendering in-process caching ineffective. This was causing extreme
slowness on some configurations (about factor 100).

Change-Id: I1e28afea8710b44542c55db150ad37518a5a5df1

11 years agoGenderize user namespace for 'be' locale
Pavel Selitskas [Thu, 31 Jan 2013 09:09:47 +0000 (12:09 +0300)]
Genderize user namespace for 'be' locale

Per https://be.wikipedia.org/wiki/Вікіпедыя:Форум#filengenderize

Change-Id: Ia3287902ea45ef55d8c8aa061fd753caacc62521

11 years agoMerge "Installer: Fix double escaping of config-download-localsettings."
jenkins-bot [Thu, 31 Jan 2013 06:59:24 +0000 (06:59 +0000)]
Merge "Installer: Fix double escaping of config-download-localsettings."

11 years ago[JobQueue] Re-try jobs that fail normally.
Aaron Schulz [Thu, 31 Jan 2013 04:14:56 +0000 (20:14 -0800)]
[JobQueue] Re-try jobs that fail normally.

* Jobs will be re-attempted if run() returns false.
  This means that claimTTL is useful beyond just the case
  where runners get killed in the middle of a job or an
  uncaught exception is thrown.
* Moved MAX_ATTEMPTS constant up to base class.
* Clarified docs a bit.

Change-Id: Id7f970e82a63aa563e9a7a023ce32e5d6680433a

11 years agoBug 44157 - The return value of realpath should be tested
MarkAHershberger [Sat, 19 Jan 2013 20:20:29 +0000 (15:20 -0500)]
Bug 44157 -  The return value of realpath should be tested

Change-Id: Id178ee2fa5e294e858ee2af188e02c67f3205da9

11 years agoMerge "Make jquery.client recognize Iceweasel"
jenkins-bot [Thu, 31 Jan 2013 02:50:43 +0000 (02:50 +0000)]
Merge "Make jquery.client recognize Iceweasel"

11 years agoInstaller: Fix double escaping of config-download-localsettings.
Timo Tijhof [Thu, 31 Jan 2013 01:19:25 +0000 (17:19 -0800)]
Installer: Fix double escaping of config-download-localsettings.

The link was outputted as:
 "Download <code>LocalSettings.php</code>"
rendered as:
 "Download <code>LocalSettings.php</code>"
screenshot:
 http://cl.ly/image/1y2O3y2S2B19

Change-Id: I55a677b2a0f83dc6627d712584b8faa00e413b8b
Follows-up: Iaa2c89d6
Bug: 44526

11 years agoAdd getters to HttpError, to use it in tests.
daniel [Wed, 30 Jan 2013 21:43:43 +0000 (22:43 +0100)]
Add getters to HttpError, to use it in tests.

Change-Id: I1165063ebdbcc29ae26998bd6ab74782dc0ecdc5

11 years agoMerge "Fix double colons in api help output"
jenkins-bot [Wed, 30 Jan 2013 21:28:13 +0000 (21:28 +0000)]
Merge "Fix double colons in api help output"

11 years agoMerge "[LockManager] Refactoring to allow proper cross-wiki support."
jenkins-bot [Wed, 30 Jan 2013 21:26:10 +0000 (21:26 +0000)]
Merge "[LockManager] Refactoring to allow proper cross-wiki support."

11 years agoMerge ".gitignore Composer related files"
jenkins-bot [Wed, 30 Jan 2013 21:23:55 +0000 (21:23 +0000)]
Merge ".gitignore Composer related files"

11 years agoMerge "(bug 44160) Fix invalid link of `others` during installation"
jenkins-bot [Wed, 30 Jan 2013 21:20:04 +0000 (21:20 +0000)]
Merge "(bug 44160) Fix invalid link of `others` during installation"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 30 Jan 2013 20:26:04 +0000 (20:26 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If09fc6a3f1c9abc491beed0f34a9811ff2abf844

11 years agoFix double colons in api help output
Reedy [Wed, 30 Jan 2013 19:19:18 +0000 (19:19 +0000)]
Fix double colons in api help output

  Get links from the [[Main Page]]::
    api.php?action=query&prop=links&titles=Main%20Page
  Get information about the link pages in the [[Main Page]]::
    api.php?action=query&generator=links&titles=Main%20Page&prop=info
  Get links from the Main Page in the User and Template namespaces::
    api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10

Change-Id: I3645bd72d80aef3f99da7f8f5fa1d63a1b28ad78

11 years agoBetter way for extensions to add to ParserOutput.
daniel [Tue, 22 Jan 2013 11:59:23 +0000 (12:59 +0100)]
Better way for extensions to add to ParserOutput.

Extensions sometimes need to stash information in the ParserOutput
for later use. This change provides a clean way to do that.

Change-Id: I8bc571d13c9a70bb71430862c2ab679ff1947126

11 years agoMake jquery.client recognize Iceweasel
Catrope [Wed, 30 Jan 2013 01:42:39 +0000 (17:42 -0800)]
Make jquery.client recognize Iceweasel

Change-Id: Ide927219fc2a102a9c0adad9b39f155dfb86c27d

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 29 Jan 2013 20:45:06 +0000 (20:45 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I1b06080eae889aa69b27c0500618f6b2e2e92935

11 years agoMerge "Dump unit tests no longer fail if gzip is not available"
jenkins-bot [Tue, 29 Jan 2013 20:30:19 +0000 (20:30 +0000)]
Merge "Dump unit tests no longer fail if gzip is not available"

11 years agofix hardcoded quote in Special:DoubleRedirects/BrokenRedirects
umherirrender [Tue, 29 Jan 2013 20:00:33 +0000 (21:00 +0100)]
fix hardcoded quote in Special:DoubleRedirects/BrokenRedirects

Also remove the extra parentheses, will be added by Database::makeList
already.

Change-Id: I38efac1af8a4fb1e52d7716a9fe3440510705676

11 years agoMerge "[ExternalStore] Refactored external store classes to use a base class."
jenkins-bot [Tue, 29 Jan 2013 18:33:41 +0000 (18:33 +0000)]
Merge "[ExternalStore] Refactored external store classes to use a base class."

11 years agoMake HttpError set actual HTTP error code.
daniel [Tue, 29 Jan 2013 16:02:19 +0000 (17:02 +0100)]
Make HttpError set actual HTTP error code.

Previsouly, HttpError would set a Status header with the desired code,
but would not change the actual HTTP/1.1 header to include that code.

Change-Id: I2f68b1fa410b3619c5be3e82b64f99df97b9415a

11 years ago.gitignore Composer related files
Antoine Musso [Tue, 29 Jan 2013 15:32:13 +0000 (16:32 +0100)]
.gitignore Composer related files

The Composer dependencie manager installs components under /vendor by
default so simply ignore that path. We do not care of tracking the
composer.* files, they will always be local just like LocalSettings.php.

Extensions are properly installed under /extensions/.

Change-Id: I7c50ee11edf2f7b1d71533fc32a75831a384a630

11 years ago(bug 44160) Fix invalid link of `others` during installation
Abhishek Das [Mon, 28 Jan 2013 18:17:13 +0000 (23:47 +0530)]
(bug 44160) Fix invalid link of `others` during installation

On the `Environmental Checks` page during MW installation, the link to
`others` in Credits was invalid because it points to a local special
page and the wiki is not even installed.

Changed the link to
`http://www.mediawiki.org/wiki/Special:Version/Credits` which is
always available during installation.

Change-Id: I3967e14303f9db7def39c97982f06e6086bb69b8

11 years agoMerge "test: helper to skip tests depending on 'gzip'"
jenkins-bot [Tue, 29 Jan 2013 10:41:11 +0000 (10:41 +0000)]
Merge "test: helper to skip tests depending on 'gzip'"

11 years agoDump unit tests no longer fail if gzip is not available
btongminh [Tue, 1 Jan 2013 14:01:03 +0000 (15:01 +0100)]
Dump unit tests no longer fail if gzip is not available

Change-Id: Id1890984124028cb44960977c18572f1f6fded4c

11 years agoMerge "raise PHPUnit default timeouts"
jenkins-bot [Tue, 29 Jan 2013 10:08:02 +0000 (10:08 +0000)]
Merge "raise PHPUnit default timeouts"

11 years agoSprinkle <code> over some strings for consistency
raymond [Tue, 29 Jan 2013 09:58:06 +0000 (10:58 +0100)]
Sprinkle <code> over some strings for consistency

Change-Id: Iaa2c89d6a49bc6712230105f08f4a3f5837d0b97

11 years agotest: helper to skip tests depending on 'gzip'
Antoine Musso [Mon, 28 Jan 2013 15:09:17 +0000 (16:09 +0100)]
test: helper to skip tests depending on 'gzip'

Some of our tests explicitly depends on the 'gzip' command line utility,
for example the Dumps test suite.  This patch adds up a simple helper
MediaWikiTestCase::checkHasGzip() which skips tests whenever gzip is
missing.

Change-Id: I5ded9a53d08dcf5f35e666f91e3f64e6e111af32

11 years agoraise PHPUnit default timeouts
Antoine Musso [Tue, 29 Jan 2013 09:49:13 +0000 (10:49 +0100)]
raise PHPUnit default timeouts

default ..  2s -> 10s
medium ... 10s -> 30s

I originally thought that using PHPUnit timeout system was a good idea
but that is causing more harm than being helpful. Now default to ten
seconds.

Change-Id: If10a9b6df967130838a253d986b2ed623d8e3b0a

11 years agoapi: remove duplicate __contruct calls
Antoine Musso [Tue, 29 Jan 2013 08:38:17 +0000 (09:38 +0100)]
api: remove duplicate __contruct calls

For historical reasons, all our API class had a dummy __construct which
simply calls their parent constructor.  This patch removes all such
occurences to save out some bytes.

Change-Id: I667955d7821f780fc5ce23823d74dedb1729b9fa

11 years ago[FileRepo] Lazy load large metadata from the DB.
Aaron Schulz [Thu, 24 Jan 2013 03:20:57 +0000 (19:20 -0800)]
[FileRepo] Lazy load large metadata from the DB.

* Previously, large values that could not fit into memcached would not be cached
  and the master DB would be hit for any file loading (djvu files hit this often).

Change-Id: I3ed8ad4a85d6e3084330b56c3b48ee76103bd2b8

11 years agoMerge "pass codesniffer on tests/"
jenkins-bot [Mon, 28 Jan 2013 23:47:45 +0000 (23:47 +0000)]
Merge "pass codesniffer on tests/"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 28 Jan 2013 21:38:07 +0000 (21:38 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I3713319f9382705bf987d9cfde257cd47663ac9d

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 28 Jan 2013 20:07:26 +0000 (20:07 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I8c8f7294dfb955e61844bf740110efcd5b611484

11 years agoMerge "Improved handling of pending queue delisting."
Demon [Mon, 28 Jan 2013 19:10:47 +0000 (19:10 +0000)]
Merge "Improved handling of pending queue delisting."

11 years agoMerge "[FileRepo] Use getHandler() is some places that should use it."
jenkins-bot [Mon, 28 Jan 2013 19:04:59 +0000 (19:04 +0000)]
Merge "[FileRepo] Use getHandler() is some places that should use it."

11 years ago[LockManager] Refactoring to allow proper cross-wiki support.
Aaron Schulz [Fri, 25 Jan 2013 20:19:57 +0000 (12:19 -0800)]
[LockManager] Refactoring to allow proper cross-wiki support.

Change-Id: I331d011a6fa4edd434f0fb547d325ad60901119d

11 years agoMerge "(Bug 44415) Drops possessive from watchlist header"
jenkins-bot [Mon, 28 Jan 2013 18:39:13 +0000 (18:39 +0000)]
Merge "(Bug 44415) Drops possessive from watchlist header"

11 years agoMerge "[FileRepo] Lowered negative caching duration."
jenkins-bot [Mon, 28 Jan 2013 18:27:43 +0000 (18:27 +0000)]
Merge "[FileRepo] Lowered negative caching duration."

11 years agoMerge "(bug 44044) Check for existence of the timeout script in ulimit5.sh"
jenkins-bot [Mon, 28 Jan 2013 18:17:02 +0000 (18:17 +0000)]
Merge "(bug 44044) Check for existence of the timeout script in ulimit5.sh"

11 years agoMerge "(bug 41330) Default to the current year in the history page filter form"
jenkins-bot [Mon, 28 Jan 2013 18:15:10 +0000 (18:15 +0000)]
Merge "(bug 41330) Default to the current year in the history page filter form"

11 years agoMerge "(bug 36537) Rename calls to wfArrayToCGI to wfArrayToCgi"
Demon [Mon, 28 Jan 2013 18:11:50 +0000 (18:11 +0000)]
Merge "(bug 36537) Rename calls to wfArrayToCGI to wfArrayToCgi"

11 years ago(bug 36537) Rename calls to wfArrayToCGI to wfArrayToCgi
Alex Monk [Mon, 28 Jan 2013 18:04:20 +0000 (18:04 +0000)]
(bug 36537) Rename calls to wfArrayToCGI to wfArrayToCgi

Done with this command:
grep wfArrayToCGI * -R -l -Z | xargs -0 -l sed -i -e 's/wfArrayToCGI/wfArrayToCgi/g' && git checkout -- HISTORY

Change-Id: If7f4d4bfc199289c11c43cf519c2415a1aad1c51

11 years agoMerge "[FileBackend] Added duplicate backend check."
jenkins-bot [Mon, 28 Jan 2013 18:00:27 +0000 (18:00 +0000)]
Merge "[FileBackend] Added duplicate backend check."

11 years ago[FileRepo] Use getHandler() is some places that should use it.
Aaron Schulz [Fri, 25 Jan 2013 19:47:06 +0000 (11:47 -0800)]
[FileRepo] Use getHandler() is some places that should use it.

Change-Id: I1b4b9786217b819c739f04e8bcead5c5774671a0

11 years ago[FileRepo] Lowered negative caching duration.
Aaron Schulz [Thu, 24 Jan 2013 21:31:40 +0000 (13:31 -0800)]
[FileRepo] Lowered negative caching duration.

Change-Id: I288ce2eef3cf547e254843c7f806925ee44391ca

11 years agoMerge "(bug 41476) Implement Language::isKnownLanguageTag()"
jenkins-bot [Mon, 28 Jan 2013 17:11:13 +0000 (17:11 +0000)]
Merge "(bug 41476) Implement Language::isKnownLanguageTag()"

11 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Mon, 28 Jan 2013 15:46:03 +0000 (16:46 +0100)]
Localisation updates from translatewiki.net.

Updates for namespaces.

Change-Id: I77bd20a912976178501e97f7eab6eaabfb4bf86a

11 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Mon, 28 Jan 2013 14:35:32 +0000 (15:35 +0100)]
Localisation updates from translatewiki.net.

Updates for magic words.

Change-Id: Id095f8a9241e22db583016b7d5af74b3f6c2a6ba

11 years agoUse tabs to indent lines
Siebrand Mazeland [Mon, 28 Jan 2013 13:58:47 +0000 (14:58 +0100)]
Use tabs to indent lines

Change-Id: I0afd5b2ebcbdd0ced48a08e1861e3a968e847121

11 years agoMerge "Localisation updates from http://translatewiki.net."
Siebrand Mazeland [Mon, 28 Jan 2013 13:56:30 +0000 (13:56 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Mon, 28 Jan 2013 13:50:35 +0000 (14:50 +0100)]
Localisation updates from translatewiki.net.

Updates for special page aliases.

Change-Id: Id1400249980400e0007eea3c5fb3e511aeb22878

11 years agoWhitelisting publicly readable title with regex
nullspoon [Tue, 7 Aug 2012 22:06:12 +0000 (16:06 -0600)]
Whitelisting publicly readable title with regex

This patch make it possible to whitelist pages which anonymous users may
see. It is similar to $wgWhitelistRead expect it uses regular
expressions, the list of regex are to be added in the new global array
$wgWhitelistReadRegexp.

This would be useful in a semi-public team wiki situation where the
admin would want to hide an entire namespace from everyone except those
in a particular group due to sensitive team specific information.

Added new unit test testUserCan in includes/TitleTest.php to
test this new functionality.

* adds $wgWhitelistReadRegexp to DefaultSettings.php
* updates RELEASE-NOTES-1.21 new features
* updates CREDITS

Signed-off-by: Antoine Musso <hashar@free.fr>
Change-Id: I83f6a614874c3d289ff4bd8d015f1d9c92e500b6

11 years agoMerge "rename vars in SkinTemplate::outputPage()"
jenkins-bot [Mon, 28 Jan 2013 11:44:08 +0000 (11:44 +0000)]
Merge "rename vars in SkinTemplate::outputPage()"

11 years agoraise timeout for CdbTest::testCdb()
Antoine Musso [Mon, 28 Jan 2013 11:33:22 +0000 (12:33 +0100)]
raise timeout for CdbTest::testCdb()

CdbTest::testCdb() does some I/O which might timeout form time to time
on the continuous integration server. Mark the test has being in the
medium group, thus raising it from 2 seconds to 10 seconds.

Change-Id: I4a8d7f443ab0ebf47d79f25e1c33832e6e501c51

11 years agorename vars in SkinTemplate::outputPage()
Amir E. Aharoni [Wed, 25 Jul 2012 09:23:26 +0000 (12:23 +0300)]
rename vars in SkinTemplate::outputPage()

The $tmp, $l names are not very meaningfull. This patch rename some
variables and avoid calling methods by adding some more variables.
Overall this cleanup the code to be more readable.

Change-Id: I4d2018c6cf3f651647bcb9e235b8322943bd5728

11 years agoMerge "testPngNativetZtxt requires zlib extension"
Gerrit Code Review [Mon, 28 Jan 2013 11:24:17 +0000 (11:24 +0000)]
Merge "testPngNativetZtxt requires zlib extension"

11 years agotest: some Revision tests depends on PHP zlib ext
Antoine Musso [Mon, 14 Jan 2013 21:06:57 +0000 (22:06 +0100)]
test: some Revision tests depends on PHP zlib ext

Use an helper to verify whether 'zlib' is available, else will happilly
skip the test.

Change-Id: I43f8b20a95286b5495799d54b415f6d15894a335

11 years agotestPngNativetZtxt requires zlib extension
Platonides [Mon, 14 Jan 2013 21:16:50 +0000 (22:16 +0100)]
testPngNativetZtxt requires zlib extension

Change-Id: I27e84548ff792ee3bac9b582ba058a029a786768

11 years agotest: helper to skip tests depending on a PHP ext
Antoine Musso [Mon, 28 Jan 2013 09:27:31 +0000 (10:27 +0100)]
test: helper to skip tests depending on a PHP ext

Some of our tests expect a specific PHP extension to be loaded to get
anything done, for example zlib or gd.  This patch creates a new helping
method that people can use to easily skip a test whenever a PHP
extension is not around: MediaWikiTestCase::checkPHPExtension()

Example usage:

 function testCompressFiles() {
   $this->checkPHPExtension( 'zlib' );
   ...
 }

Change-Id: Ia87317ca379b2d5d1d1fa4231f76033ee66086c2

11 years agopass codesniffer on tests/
Antoine Musso [Mon, 28 Jan 2013 10:27:15 +0000 (11:27 +0100)]
pass codesniffer on tests/

Fix almost all occurences of the following sniffs:

Generic.CodeAnalysis.UselessOverridingMethod.Found
Generic.Formatting.NoSpaceAfterCast.SpaceFound
Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma
Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine
Generic.PHP.LowerCaseConstant.Found
PSR2.Classes.PropertyDeclaration.ScopeMissing
PSR2.Files.EndFileNewline.TooMany
PSR2.Methods.MethodDeclaration.StaticBeforeVisibility

Change-Id: I96aacef5bafe5a2bca659744fba1380999cfc37d

11 years agoMerge "Sprinkle <code> over some strings."
jenkins-bot [Mon, 28 Jan 2013 10:01:26 +0000 (10:01 +0000)]
Merge "Sprinkle <code> over some strings."