lhc/web/wiklou.git
12 years agoMerge "Fix repo type of a LocalFile to be LocalRepo, which has a cleanupDeletedBatch...
Aaron Schulz [Sat, 7 Apr 2012 23:34:41 +0000 (23:34 +0000)]
Merge "Fix repo type of a LocalFile to be LocalRepo, which has a cleanupDeletedBatch which returns a value"

12 years agoMerge "Fix duplicate array key of fa_deleted in LocalFile"
Aaron Schulz [Sat, 7 Apr 2012 23:33:14 +0000 (23:33 +0000)]
Merge "Fix duplicate array key of fa_deleted in LocalFile"

12 years ago(bug 32498) Allow comparing pages using pageids
Alex Monk [Sat, 7 Apr 2012 23:30:54 +0000 (00:30 +0100)]
(bug 32498) Allow comparing pages using pageids

Change-Id: Ia2ab39e3b7b911f622aad96ca7b94ea7675c00ac

12 years agoMerge "(bug 32497) API now allows changing of protection level using pageid"
Reedy [Sat, 7 Apr 2012 21:30:24 +0000 (21:30 +0000)]
Merge "(bug 32497) API now allows changing of protection level using pageid"

12 years agoDocument $mDb
Reedy [Sat, 7 Apr 2012 21:07:32 +0000 (22:07 +0100)]
Document $mDb

Change-Id: I971820ba14d08f23c2eec570183ab851e48debfc

12 years agoDocument spawn* class variables
Reedy [Sat, 7 Apr 2012 21:02:09 +0000 (22:02 +0100)]
Document spawn* class variables

Change-Id: I9e80b5b41ca442c8671d65cce4e8d2f5c033435d

12 years agoMerge "Make $procOpenResource protected as it's used on line 1011 in the Dump7ZipOutp...
Nikerabbit [Sat, 7 Apr 2012 21:01:51 +0000 (21:01 +0000)]
Merge "Make $procOpenResource protected as it's used on line 1011 in the Dump7ZipOutput subclass"

12 years agowfLocalFile returns a LocalFile (or null) not a File
Reedy [Sat, 7 Apr 2012 20:51:53 +0000 (21:51 +0100)]
wfLocalFile returns a LocalFile (or null) not a File

Change-Id: Ib016f16c1b5528d9f6af4189ca8459cacb54cf10

12 years agoFix variable collision
Reedy [Sat, 7 Apr 2012 20:48:40 +0000 (21:48 +0100)]
Fix variable collision

Change-Id: I28b22bd8aad30ef0323cdc897dce1de9849b1b87

12 years agoGENDER should use the GenderCache
umherirrender [Sat, 7 Apr 2012 20:45:31 +0000 (22:45 +0200)]
GENDER should use the GenderCache

This reused the gender state of a user on a page. This is helpful for
special pages which shows the group name, because the each group name
used gender, which result in often use.

Change-Id: I8e816f54aaa100c3333e84e19299fd194323341d

12 years agoFix php4 constructor
Reedy [Sat, 7 Apr 2012 20:41:31 +0000 (21:41 +0100)]
Fix php4 constructor

Change-Id: Id5634dc8126fe570abb2bdf6ef1fc8052ac9e051

12 years ago$rootCode isn't used so no point creating it
Reedy [Sat, 7 Apr 2012 20:21:08 +0000 (21:21 +0100)]
$rootCode isn't used so no point creating it

Change-Id: I1c71e8bc1952bac2b5c9a81b4d3e6e4174979b38

12 years agoMerge "Minor whitespace fix"
Siebrand [Sat, 7 Apr 2012 20:19:25 +0000 (20:19 +0000)]
Merge "Minor whitespace fix"

12 years agoMinor whitespace fix
Reedy [Sat, 7 Apr 2012 20:16:21 +0000 (21:16 +0100)]
Minor whitespace fix

Change-Id: I0329dc06f9b809475197434dc7fbd715badec3f7

12 years ago'/Şçʹ/u' => 'Щь'
Reedy [Sat, 7 Apr 2012 20:12:09 +0000 (21:12 +0100)]
'/Şçʹ/u' => 'Щь'

^ Duplicate array key listed twice

Change-Id: Id24beb982662a5e6c9e1d2b1f1e1ff637e50f2dd

12 years agoMerge "Fix duplicate array key of namespace stuffs"
Siebrand [Sat, 7 Apr 2012 20:09:48 +0000 (20:09 +0000)]
Merge "Fix duplicate array key of namespace stuffs"

12 years agoRemove duplicate 'filereadonlyerror'
Reedy [Sat, 7 Apr 2012 20:04:52 +0000 (21:04 +0100)]
Remove duplicate 'filereadonlyerror'

Change-Id: If1eee1f9c9a58ad52eee52804f6cce9e9815c6e6

12 years agoFix duplicate array key of namespace stuffs
Reedy [Sat, 7 Apr 2012 20:03:44 +0000 (21:03 +0100)]
Fix duplicate array key of namespace stuffs

Change-Id: Id81ae0fe82e32fd233ac3b38e761b6b21285469d

12 years ago(bug 32497) API now allows changing of protection level using pageid
Alex Monk [Sat, 7 Apr 2012 19:31:27 +0000 (20:31 +0100)]
(bug 32497) API now allows changing of protection level using pageid

Change-Id: I01802dde2fba9510cbdf23522ddac59f36a93960

12 years agoFix convIPTC docs
Reedy [Sat, 7 Apr 2012 19:23:53 +0000 (20:23 +0100)]
Fix convIPTC docs

Change-Id: I3e20d7820d8880780dbda551416fc1cbc587db45

12 years agoFix documentation to match potential code
Reedy [Sat, 7 Apr 2012 19:21:29 +0000 (20:21 +0100)]
Fix documentation to match potential code

Change-Id: Ibaaa2e82777178d8b25a19c4bec7aaed0239a277

12 years agoFix repo type of a LocalFile to be LocalRepo, which has a cleanupDeletedBatch which...
Reedy [Sat, 7 Apr 2012 19:10:02 +0000 (20:10 +0100)]
Fix repo type of a LocalFile to be LocalRepo, which has a cleanupDeletedBatch which returns a value

Change-Id: Iaa4ba2da9aefbf0ca0eae4caa0eb75bf516a9369

12 years agoDocument StringUtils
Reedy [Sat, 7 Apr 2012 19:00:10 +0000 (20:00 +0100)]
Document StringUtils

Change-Id: I5a99ed602c6bf99473e2deb1c5f38faa98def30e

12 years agoparent::report() returns nothing, so don't attempt to return its value
Reedy [Sat, 7 Apr 2012 18:39:43 +0000 (19:39 +0100)]
parent::report() returns nothing, so don't attempt to return its value

Change-Id: Id506d51818bf101a68fe8b028df2062ed221cdf9

12 years agoRemove BOM and parser error in parent commit 77b72c24fc75fd8da5d304cf33172054031095fa
Platonides [Sat, 7 Apr 2012 17:55:49 +0000 (19:55 +0200)]
Remove BOM and parser error in parent commit 77b72c24fc75fd8da5d304cf33172054031095fa

Change-Id: Ic23362656f45f151b9d2cefac16f832af664e18b

12 years ago(bug 35658) make mw.Uri handle uris w/o protocol or host
lupo [Sat, 7 Apr 2012 16:52:02 +0000 (18:52 +0200)]
(bug 35658) make mw.Uri handle uris w/o protocol or host

Includes testcase.

mw.Uri already supplied the protocol if it was missing and
document.location was set. Newly it also supplies the host (and port)
from document.location if that is set. That enables handling of
root-relative URls like "/some/path".

Changeset 2/3: rename test file from mediaWiki.Uri.test.js to
mediawiki.Uri.test.js.

Changeset 4: fix jasmine tests. Test for 'http:/foo.com' is now expected
to succeed, not throw an exception. The second test for
'foo.com/bar/baz' in strict mode is correct; that's parsed in strict
mode as a truly relative path.

Change-Id: Ibc4386ba40cffea9d30417ec2720114f6819ae1c

12 years agosetGroup doesn't return anything, so don't try and return its value
Reedy [Sat, 7 Apr 2012 16:36:00 +0000 (17:36 +0100)]
setGroup doesn't return anything, so don't try and return its value

Fix docs on getGroup

Change-Id: Ia5f29013e01eee3b97dc755486175c21c5e24f4f

12 years agoExport::dumpFrom() doesn't return any values, and hence neither do any of the methods...
Reedy [Sat, 7 Apr 2012 16:33:50 +0000 (17:33 +0100)]
Export::dumpFrom() doesn't return any values, and hence neither do any of the methods calling it (return $this->dumpFrom)

Remove return statements and extra from upstream callers

Change-Id: Ibad983128ef601e9fab5538d9ec02963e024b0a6

12 years agoMake $procOpenResource protected as it's used on line 1011 in the Dump7ZipOutput...
Reedy [Sat, 7 Apr 2012 16:25:35 +0000 (17:25 +0100)]
Make $procOpenResource protected as it's used on line 1011 in the Dump7ZipOutput subclass

Change-Id: If6a3a52b44d8a8c57f850bda515bdb307ce596d8

12 years agoAction::checkCanExecute doesn't return anything on success, but WatchAction returns...
Reedy [Sat, 7 Apr 2012 16:23:16 +0000 (17:23 +0100)]
Action::checkCanExecute doesn't return anything on success, but WatchAction returns the result

Change-Id: Ib4169a8067f22f4a80295923e2aa77d151c4c47c

12 years agoA set method doesn't need to return anything (and besides, niether does $this->base...
Reedy [Sat, 7 Apr 2012 16:20:43 +0000 (17:20 +0100)]
A set method doesn't need to return anything (and besides, niether does $this->base->setSessionData())

Change-Id: I1315697ee2879898b033c1dd01fecb809c4fe0dd

12 years agoFix duplicate array key of fa_deleted in LocalFile
Reedy [Sat, 7 Apr 2012 16:11:02 +0000 (17:11 +0100)]
Fix duplicate array key of fa_deleted in LocalFile

Change-Id: I027f902d47616d896df8efba29d25457e4ac3e73

12 years agoMerge "(bug 32492) API now allows editing using pageid"
Reedy [Sat, 7 Apr 2012 15:48:39 +0000 (15:48 +0000)]
Merge "(bug 32492) API now allows editing using pageid"

12 years agoMerge "(bug 35723) Fix exception in API list=watchlist"
Reedy [Sat, 7 Apr 2012 15:42:23 +0000 (15:42 +0000)]
Merge "(bug 35723) Fix exception in API list=watchlist"

12 years agoMerge "adding note about new API method for retrieving tokens - see Change I58bc5847"
Reedy [Sat, 7 Apr 2012 15:40:36 +0000 (15:40 +0000)]
Merge "adding note about new API method for retrieving tokens - see Change I58bc5847"

12 years ago(bug 35723) Fix exception in API list=watchlist
grunny [Sat, 7 Apr 2012 09:01:41 +0000 (19:01 +1000)]
(bug 35723) Fix exception in API list=watchlist

Applying Tim's change to list=recentchanges from commit bf1e9d7
Updates it for the new log system

Change-Id: Ifed6baba628b30f3189e64c6b7e0b278ee0e8e9a

12 years agoadding note about new API method for retrieving tokens - see Change I58bc5847
Kaldari [Sat, 7 Apr 2012 02:34:59 +0000 (19:34 -0700)]
adding note about new API method for retrieving tokens - see Change I58bc5847

Change-Id: I0b5f225e51d0095480f61f15d6de26b29dd08508

12 years agoPostgres uses TIMESTAMPTZ not DATETIME.
Greg Sabino Mullane [Sat, 7 Apr 2012 00:22:19 +0000 (20:22 -0400)]
Postgres uses TIMESTAMPTZ not DATETIME.

Change-Id: I2cabf801b4e7f0e382fe96f889d95c38fc1e88e3

12 years agoMerge "Revert "Resolve bug #18704 ("Add an unique CSS class or ID to the tagfilter...
Reedy [Sat, 7 Apr 2012 00:16:28 +0000 (00:16 +0000)]
Merge "Revert "Resolve bug #18704 ("Add an unique CSS class or ID to the tagfilter table row at RecentChanges")""

12 years agoMerged ImageFunctions.php into GlobalFunctions.php
Aaron Schulz [Fri, 6 Apr 2012 23:42:39 +0000 (16:42 -0700)]
Merged ImageFunctions.php into GlobalFunctions.php

Change-Id: I02d468f9c54a6a0448a6d99505d0201a7949855a

12 years agoRevert "Resolve bug #18704 ("Add an unique CSS class or ID to the tagfilter table...
Aaron Schulz [Fri, 6 Apr 2012 23:17:44 +0000 (16:17 -0700)]
Revert "Resolve bug #18704 ("Add an unique CSS class or ID to the tagfilter table row at RecentChanges")"

It was causing: <b>Notice</b>: Array to string conversion in <b>D:\www\DevWiki\core\includes\actions\HistoryAction.php</b> on line <b>164</b><br />

This reverts commit 6cd3995f11c36ab3a58fd7d59f8c0320e15480a3.

Conflicts:

RELEASE-NOTES-1.20

Change-Id: Iad8dad0bbc07214620af62533df432065e4698c0

12 years ago[FileRepo] Added support for temp file repos (to preserve our thumb.php hack).
Aaron Schulz [Fri, 6 Apr 2012 17:11:13 +0000 (10:11 -0700)]
[FileRepo] Added support for temp file repos (to preserve our thumb.php hack).

* Added FileRepo::getTempRepo() to get a temporary repo similiar to the one used in wmf1.19 thumb.php.
* Merged and cleaned up wmf1.19 code into thumb.php to handle temp files and thumbnails.

Change 1: prevent FileRepo::getTempRepo() from being called on the result of FileRepo::getTempRepo().

Change 2: made FileRepo::getTempRepo() account for cases when the 'directory' param is not the empty string.

Change 3:
* Tweaked TempFileRepo to override getTempRepo() to enforce restriction.
* Added FileRepo::getTempHashPath() and used in thumb.php to get the correct path.

Change-Id: I2937b5ffb3ec9a7e2741b42bc28dc76833053fcd

12 years agoMerge "Implement routing for HTCP purges"
Aaron Schulz [Fri, 6 Apr 2012 22:12:50 +0000 (22:12 +0000)]
Merge "Implement routing for HTCP purges"

12 years agoImplement routing for HTCP purges
Catrope [Fri, 6 Apr 2012 20:27:10 +0000 (13:27 -0700)]
Implement routing for HTCP purges

This allows HTCP purges for different domains to be sent to different
multicast groups, based on regexes. Mark requested this so we could
separate the multicast groups for upload caches and text caches.

This code is UNTESTED, I'm mostly submitting this as a proof of concept
and to invite review by other core devs (specifically Tim).

Change-Id: Ie333a04131d6ca8394884ed1054f2baff55ab2d1

12 years ago[LanguageConverter] Added some cache code based on the problems in r97512.
Aaron Schulz [Fri, 6 Apr 2012 19:45:49 +0000 (12:45 -0700)]
[LanguageConverter] Added some cache code based on the problems in r97512.

* Added $wgLanguageConverterCacheType global to control LC cache type. We can use it to enable direct apc use for language converter (to match the live hack).
* Added $wgLangConvMemc object, available via Setup.php

Change 1:
* Updated unit tests
* Minor documentation cleanup in DefaultSettings.php

Change-Id: Icd5dd28407e9759ce294c784ec41d9ca15c89616

12 years ago[FileBackend] Use LRU for stat/sha1 cache.
Aaron Schulz [Fri, 6 Apr 2012 20:13:06 +0000 (13:13 -0700)]
[FileBackend] Use LRU for stat/sha1 cache.

Change-Id: I0a61720357aacb42a362c6666ba7f806d6cc14cf

12 years agogenerateSitemap can now optionally skip redirects
Asier Lostalé [Wed, 4 Apr 2012 14:39:37 +0000 (16:39 +0200)]
generateSitemap can now optionally skip redirects

Slightly enhanced on commit.

Patchset2:
 - get ride of unneeded arguments passed to addOption()
 - rename $redirects to $skippedRedirects. Easier to search.
 - easier to read conditional test of page_is_redirect

Change-Id: I4ae528a584c5a9d73b615a6281d75b14d056e5e7

12 years agoMerge "Correcting type of DatabaseSqlite::insertId()"
Brion VIBBER [Fri, 6 Apr 2012 19:57:31 +0000 (19:57 +0000)]
Merge "Correcting type of DatabaseSqlite::insertId()"

12 years ago[FileRepo] Added some cache code based on the problems in r97512.
Aaron Schulz [Fri, 6 Apr 2012 17:38:38 +0000 (10:38 -0700)]
[FileRepo] Added some cache code based on the problems in r97512.

* Made RepoGroup avoid caching files with large metadata and also reduced max cache size to 500 to avoid OOMs.
* Factored out a pingCache() function in RepoGroup.

Change-Id: I52f6413b9eb8b11fbffbde0f0e7acf97c7a2ff89

12 years agoCorrecting type of DatabaseSqlite::insertId()
Christian Aistleitner [Fri, 6 Apr 2012 18:54:24 +0000 (20:54 +0200)]
Correcting type of DatabaseSqlite::insertId()

Change-Id: I37ebe291cf8c4fd66a1ee236fcfa063016efbc8d

12 years agoMerge "(bug 35751) Fix git revision links on Special:Version"
Brion VIBBER [Fri, 6 Apr 2012 18:52:40 +0000 (18:52 +0000)]
Merge "(bug 35751) Fix git revision links on Special:Version"

12 years agoMerge "Revert "[LanguageConverter] Added some cache code based on the problems in...
Catrope [Fri, 6 Apr 2012 18:43:03 +0000 (18:43 +0000)]
Merge "Revert "[LanguageConverter] Added some cache code based on the problems in r97512.""

12 years agoRevert "[LanguageConverter] Added some cache code based on the problems in r97512."
Brion VIBBER [Fri, 6 Apr 2012 18:41:27 +0000 (18:41 +0000)]
Revert "[LanguageConverter] Added some cache code based on the problems in r97512."

This reverts commit 3b8dbbd502b68d373b74481ed2bead7413050c83 -- merged prematurely, needs add'l discussion

12 years agoMerge "[LanguageConverter] Added some cache code based on the problems in r97512."
Brion VIBBER [Fri, 6 Apr 2012 18:39:48 +0000 (18:39 +0000)]
Merge "[LanguageConverter] Added some cache code based on the problems in r97512."

12 years agoRemove duplicate URLs in SquidUpdate.php
Catrope [Fri, 6 Apr 2012 18:20:04 +0000 (11:20 -0700)]
Remove duplicate URLs in SquidUpdate.php

This has to be done in 3 places, because there are 3 public entry
points.

I originally submitted this to fight duplicates I thought I was seeing
in production, but it turns out I'm blind and the URLs weren't
duplicates after all. Nevertheless, preventing duplicate purges in the
SquidUpdate class is a good idea.

Change-Id: Idc21dd7d0b3b79572853b787fac746454d9178ea

12 years ago[LanguageConverter] Added some cache code based on the problems in r97512.
Aaron Schulz [Fri, 6 Apr 2012 17:59:43 +0000 (10:59 -0700)]
[LanguageConverter] Added some cache code based on the problems in r97512.

* Added $wgLanguageConverterCacheType global to control LC cache type. We can use it to enable direct apc use for language converter (to match the live hack).

Change-Id: I04616469aa53ccd1a5ce51af50a18acca5bb8bc4

12 years agoMerge "Make SITENAME with value mw.config.get( 'wgSiteName' ) available in parser...
Brion VIBBER [Fri, 6 Apr 2012 17:46:51 +0000 (17:46 +0000)]
Merge "Make SITENAME with value mw.config.get( 'wgSiteName' ) available in parser without the need of module users explicitly adding it."

12 years ago(bug 32492) API now allows editing using pageid
Max Semenik [Thu, 5 Apr 2012 20:54:18 +0000 (00:54 +0400)]
(bug 32492) API now allows editing using pageid

Change-Id: I9fdbda962777e11a51e4200d44f225c6d01292e9

12 years agoMerge "tests related to API block action and its gettoken"
Reedy [Fri, 6 Apr 2012 15:38:25 +0000 (15:38 +0000)]
Merge "tests related to API block action and its gettoken"

12 years agoTranslation updates from translatewiki.net
Translation updater bot [Fri, 6 Apr 2012 15:34:29 +0000 (15:34 +0000)]
Translation updates from translatewiki.net

Change-Id: If4567389637d89aa8266e5b3c0fc05a7c718797f

12 years agoMerge "(bug 35749) Update checkSyntax.php to use Git"
Hashar [Fri, 6 Apr 2012 15:07:34 +0000 (15:07 +0000)]
Merge "(bug 35749) Update checkSyntax.php to use Git"

12 years agoMerge "(bug 23006) create #speciale parser function"
Hashar [Fri, 6 Apr 2012 14:23:42 +0000 (14:23 +0000)]
Merge "(bug 23006) create #speciale parser function"

12 years ago(bug 35751) Fix git revision links on Special:Version
grunny [Fri, 6 Apr 2012 13:56:26 +0000 (23:56 +1000)]
(bug 35751) Fix git revision links on Special:Version

When .git isn't used in the clone URL, links currently break

Change-Id: Ia69e1bfea91ef50c126896b374a083447db4481f

12 years agoFix grammar issues in recently added messages.
Siebrand Mazeland [Fri, 6 Apr 2012 10:54:02 +0000 (12:54 +0200)]
Fix grammar issues in recently added messages.

Yay for review...

Change-Id: I7473adbf7d15e5ecb8133e822e9d995bee4257aa

12 years agoMerge "Gender namespaces for Serbian (sr)"
Hashar [Fri, 6 Apr 2012 10:45:58 +0000 (10:45 +0000)]
Merge "Gender namespaces for Serbian (sr)"

12 years agoGender namespaces for Serbian (sr)
Niklas Laxström [Fri, 6 Apr 2012 10:17:41 +0000 (10:17 +0000)]
Gender namespaces for Serbian (sr)

Submitted by user Rancher at
http://translatewiki.net/wiki/Thread:Support/GENDER_in_namespaces

Change-Id: I6795cd04057cc80ac30091acbc7e6a2b81072f31

12 years agoPartial revert of I80a4784 for mk
Niklas Laxström [Fri, 6 Apr 2012 09:57:25 +0000 (09:57 +0000)]
Partial revert of I80a4784 for mk

This change was vetoed:
http://translatewiki.net/wiki/Thread:User_talk:GerardM/Your_mesage_at_mk.wikipedia

Change-Id: If279d218720063a2d96229baa17d5240699f90ec

12 years ago(bug 23006) create #speciale parser function
umherirrender [Thu, 5 Apr 2012 17:22:34 +0000 (19:22 +0200)]
(bug 23006) create #speciale parser function

Also add explicit Title::getPrefixedText() in
CoreParserFunctions::special, so that method does not rely on
Title::toString.

Change-Id: I1d041b11386bff15811e19de47a662e5ed7a2b07

12 years agoMerge "[FileRepo] Various code cleanups."
Hashar [Fri, 6 Apr 2012 06:45:16 +0000 (06:45 +0000)]
Merge "[FileRepo] Various code cleanups."

12 years agoMerge "Un-marking testMakeNormalBlock as broken..."
Hashar [Fri, 6 Apr 2012 06:42:07 +0000 (06:42 +0000)]
Merge "Un-marking testMakeNormalBlock as broken..."

12 years ago(bug 35749) Update checkSyntax.php to use Git
Kevin Israel [Fri, 6 Apr 2012 04:13:46 +0000 (00:13 -0400)]
(bug 35749) Update checkSyntax.php to use Git

checkSyntax.php now uses git commands to retrieve a list of modified
files instead of the svn command-line client.

The script now considers any files that have been changed since
the nearest common ancestor to the master branch to be "modified",
as it is probably desirable to include files modified in previous
commits on the same local topic branch that have not yet made it
into master.

Change-Id: I0d4a02d4591242a9fd45291f5c4230c535e861b3

12 years agoMake SITENAME with value mw.config.get( 'wgSiteName' ) available in parser without...
Santhosh Thottingal [Mon, 2 Apr 2012 11:35:36 +0000 (17:05 +0530)]
Make SITENAME with value mw.config.get( 'wgSiteName' ) available in parser without the need of module users explicitly adding it.

- Refer Bug 33658
- Merging the jsgrammar branch of svn.

Change-Id: Iacdf02122f396ac90678241775eb8e079ff6369a

12 years agoMerge ""Show Changes" on default messages shows now diff against default message...
Brion VIBBER [Thu, 5 Apr 2012 23:02:18 +0000 (23:02 +0000)]
Merge ""Show Changes" on default messages shows now diff against default message text"

12 years agoMerge "Show Log toolbox link for anon users, fix toolbox on DeletedContribs"
Aaron Schulz [Thu, 5 Apr 2012 22:33:09 +0000 (22:33 +0000)]
Merge "Show Log toolbox link for anon users, fix toolbox on DeletedContribs"

12 years agoMerge "Use local context to get messages"
Aaron Schulz [Thu, 5 Apr 2012 22:20:01 +0000 (22:20 +0000)]
Merge "Use local context to get messages"

12 years agoMerge "code style tweaks"
Hashar [Thu, 5 Apr 2012 21:21:35 +0000 (21:21 +0000)]
Merge "code style tweaks"

12 years ago"Show Changes" on default messages shows now diff against default
umherirrender [Thu, 5 Apr 2012 19:58:00 +0000 (21:58 +0200)]
"Show Changes" on default messages shows now diff against default
message text

This is useful, because the textbox is already preloaded with the
default message text and than it is nice to get the diff against that
text.

Change-Id: Icbfb0090c32ea09e34ec3ccba26863189854f8a6

12 years ago[FileRepo] Various code cleanups.
Aaron Schulz [Thu, 5 Apr 2012 04:10:50 +0000 (21:10 -0700)]
[FileRepo] Various code cleanups.

* Made File::isHashed() wrap FileRepo::getHashLevels(). Removed now-used FileRepo::isHashed().
* Removed FileRepo::simpleClean(). Not useful anymore since the paths in Status errors don't have $IP or upload dirs anymore.
* Removed code in FileRepo::fileExistsBatch() and FileRepo::cleanupBatch() to handle FS file paths, which should never be passed in anymore. Likewise, removed FILES_ONLY parameter.
* Removed FileRepo::append()/appendFinish() stub functions.
* Added FileRepo::assertWritableRepo() function to better handle repos that are read-only by design rather than the hack of overwriting each function (several were missed).
* Added FileBackend::isPathTraversalFree() function and used it in FileRepo::validateFilename() to avoid duplication.
* Tweaked FileRepo::freeTemp() to avoid file locking and made FileRepo::cleanupBatch() return a Status.
* Moved FileRepo::cleanupDeletedBatch() near FileRepo::deleteBatch().
* Added type hinting to a few places.
* Tweaked some misleading doc comments and added function visibility markers.

Change 1:
* Simplified NullRepo to also use assertWritableRepo(). It is currently only used by a single unit test.

Change-Id: I1cd0f4971011772e38e5156f94ffc50325372f28

12 years agoUse local context to get messages
Alexandre Emsenhuber [Thu, 5 Apr 2012 19:39:22 +0000 (21:39 +0200)]
Use local context to get messages

Change-Id: I73e0d08f684c67ec5257953eadfda3acdfa4e71f

12 years agoFix for I5b02aa914916f64492c85ce6dcc3272b6406551a (r4335) add parentheses arround...
Alexandre Emsenhuber [Thu, 5 Apr 2012 18:59:50 +0000 (20:59 +0200)]
Fix for I5b02aa914916f64492c85ce6dcc3272b6406551a (r4335) add parentheses arround git revision hashes.

Per Reedy, for consistency with the MediaWiki item at the top of the page and revision numbers in SVN; arround parentheses arround git hashes of extensions in Special:Version.

Change-Id: I59573ffcdd9f245a12b85ba70182cef5ed3a277e

12 years agoMerge "Making https svnroot point to https viewvc, not https viewvc to https viewvc...
Aaron Schulz [Thu, 5 Apr 2012 19:00:04 +0000 (19:00 +0000)]
Merge "Making https svnroot point to https viewvc, not https viewvc to https viewvc, as that wouldn't replace anything"

12 years agoMerge "Duplicate array keys aren't going to do very much..."
Aaron Schulz [Thu, 5 Apr 2012 18:48:17 +0000 (18:48 +0000)]
Merge "Duplicate array keys aren't going to do very much..."

12 years agoDuplicate array keys aren't going to do very much...
Reedy [Thu, 5 Apr 2012 18:34:52 +0000 (19:34 +0100)]
Duplicate array keys aren't going to do very much...

Change-Id: I3421f70332f9514e71d4c1f0751be567108c1099

12 years agoMerge "(bug 27757) API method for retrieving tokens"
Brion VIBBER [Thu, 5 Apr 2012 18:34:50 +0000 (18:34 +0000)]
Merge "(bug 27757) API method for retrieving tokens"

12 years agoMerge "Add passing test documenting MW's acceptance of pipes between tr attributes"
Brion VIBBER [Thu, 5 Apr 2012 18:30:18 +0000 (18:30 +0000)]
Merge "Add passing test documenting MW's acceptance of pipes between tr attributes"

12 years agoMaking https svnroot point to https viewvc, not https viewvc to https viewvc, as...
Reedy [Thu, 5 Apr 2012 18:29:50 +0000 (19:29 +0100)]
Making https svnroot point to https viewvc, not https viewvc to https viewvc, as that wouldn't replace anything

Change-Id: Ibd7fe17e82c222c97010e468cec09ddc9aab0120

12 years agocode style tweaks
jeroendedauw [Thu, 5 Apr 2012 16:45:14 +0000 (18:45 +0200)]
code style tweaks

Change-Id: I992459cd740678d0eb0b2dd70de6c092d7dba67e

12 years agoMerge "Renamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook...
Brion VIBBER [Thu, 5 Apr 2012 18:22:05 +0000 (18:22 +0000)]
Merge "Renamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook to "wfShellWikiCmd". The old function now remains as a wrapper. The term "maintenance" is too restrictive."

12 years agoMerge "(bug 35728) Git revisions are now linked on Special:Version"
Brion VIBBER [Thu, 5 Apr 2012 18:08:12 +0000 (18:08 +0000)]
Merge "(bug 35728) Git revisions are now linked on Special:Version"

12 years agoFix error from I55939bb5295e73594c3fdf7287dddbc16a233ce4 (r4099) pointed out by Niker...
Alexandre Emsenhuber [Thu, 5 Apr 2012 18:02:59 +0000 (20:02 +0200)]
Fix error from I55939bb5295e73594c3fdf7287dddbc16a233ce4 (r4099) pointed out by Nikerabbit

The error is "PHP Strict Standards:  Creating default object from empty value in includes/User.php on line 2142"; the problem was that I forgot to renamed an instance of that variable while refactoring the code.

Change-Id: I4e32311693708ec5a0227d60f7818b374fccd4cc

12 years ago(bug 35728) Git revisions are now linked on Special:Version
Alexandre Emsenhuber [Thu, 5 Apr 2012 16:09:59 +0000 (18:09 +0200)]
(bug 35728) Git revisions are now linked on Special:Version

Change-Id: I5b02aa914916f64492c85ce6dcc3272b6406551a

12 years ago(bug 35649) Special:Version now shows hashes of extensions checked out from git
Alexandre Emsenhuber [Thu, 5 Apr 2012 15:13:14 +0000 (17:13 +0200)]
(bug 35649) Special:Version now shows hashes of extensions checked out from git

Change-Id: I0d9540dbc103ba678dd2fb5e11c656e238e31f18

12 years agoAdd passing test documenting MW's acceptance of pipes between tr attributes
Gabriel Wicke [Thu, 5 Apr 2012 13:49:58 +0000 (15:49 +0200)]
Add passing test documenting MW's acceptance of pipes between tr attributes

Change-Id: I584a8826348a9acc4facfaadf5766832d262a53d

12 years agoMerge "Remove some duplicate code in ProfilerSimpleTrace"
Hashar [Thu, 5 Apr 2012 08:24:32 +0000 (08:24 +0000)]
Merge "Remove some duplicate code in ProfilerSimpleTrace"

12 years agoRenamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook
Aaron Schulz [Wed, 4 Apr 2012 23:48:55 +0000 (16:48 -0700)]
Renamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook
to "wfShellWikiCmd". The old function now remains as a wrapper. The term "maintenance" is too restrictive.

Change-Id: I5c23d6475fd1aca374ee57b89212eee3a0d8cea1

12 years agoMerge "increase qunit coverage of mediawiki.html and mediawiki.util"
Brion VIBBER [Wed, 4 Apr 2012 21:04:54 +0000 (21:04 +0000)]
Merge "increase qunit coverage of mediawiki.html and mediawiki.util"

12 years agoRemoved "feed" parameter to query string added to feed links.
Alexandre Emsenhuber [Wed, 4 Apr 2012 20:51:51 +0000 (22:51 +0200)]
Removed "feed" parameter to query string added to feed links.

The "feed" parameter was set two times in the query string of feed links and thus was breaking the links.
Also removed a trailing whitespace pointed out by Krinkle in my last commit.

Change-Id: Ia210e6e998acf29cb0a0fad5b6f7f8d6062998d2

12 years agoincrease qunit coverage of mediawiki.html and mediawiki.util
Timo Tijhof [Wed, 4 Apr 2012 20:48:46 +0000 (22:48 +0200)]
increase qunit coverage of mediawiki.html and mediawiki.util

- mw.html
 * Adding test for mw.html.Raw
 * Adding more tests for mw.html.element

- mw.util
 * Minor coding style update (local variables)
 * Updating mw.util.addPortletLink to not create its own "#mw-panel",
 this was previously done for ./qunit/index.html (which has been
 removed) but when ran on [[Special:JavaScriptTest/qunit]] it collides
 with the existing "#mw-panel", so far didn't break anything but that
 was purely lucky. This element is redundant so taking it out of the
 html sample
 * Removing redundant clean up, #qunit-fixture is automatically cleaned
 after each test

Change-Id: Iaf9791ca3cdcac1b732c851cdecc8fcd9f96fdd8

12 years agoMerge "(bug 35705) QUnit upgraded from 1.2.0 to 1.5.0"
Timo Tijhof [Wed, 4 Apr 2012 20:36:06 +0000 (20:36 +0000)]
Merge "(bug 35705) QUnit upgraded from 1.2.0 to 1.5.0"

12 years agoMerge "Use local context to get messages and time formatting methods of Language...
Brion VIBBER [Wed, 4 Apr 2012 20:33:45 +0000 (20:33 +0000)]
Merge "Use local context to get messages and time formatting methods of Language class"