lhc/web/wiklou.git
12 years agorevert r110340 after talking with krinle
Mark A. Hershberger [Tue, 31 Jan 2012 01:02:01 +0000 (01:02 +0000)]
revert r110340 after talking with krinle

12 years ago(bug 33992) - "Allow anon a formless purge with POST". Changed HTMLForm::tryAuthorize...
Aaron Schulz [Mon, 30 Jan 2012 23:44:34 +0000 (23:44 +0000)]
(bug 33992) - "Allow anon a formless purge with POST". Changed HTMLForm::tryAuthorizedSubmit() to (a) require post for forms that are supposed to be posted and (b) bypass the token check for anons as it doesn't really do much except be slightly annoying. The tokens are just User::EDIT_TOKEN_SUFFIX in that case.

12 years agoFixes bug 34036 - [regression] mw.loader.load doesn't works as importScriptURI for...
Mark A. Hershberger [Mon, 30 Jan 2012 23:07:08 +0000 (23:07 +0000)]
Fixes bug 34036 - [regression] mw.loader.load doesn't works as importScriptURI for some kinds of URLs
Patch from Helder.wiki

12 years agoUse local context to get messages instead of relying on global variables
Alexandre Emsenhuber [Mon, 30 Jan 2012 21:09:48 +0000 (21:09 +0000)]
Use local context to get messages instead of relying on global variables

12 years agoUse Language::userTimeAndDate() instead of Language::timeanddate() to display timesta...
Alexandre Emsenhuber [Mon, 30 Jan 2012 20:23:01 +0000 (20:23 +0000)]
Use Language::userTimeAndDate() instead of Language::timeanddate() to display timestamp with user preferences

12 years ago[Xml::encodeJsVar] Use FormatJson::encode / native json_encode instead
Krinkle [Mon, 30 Jan 2012 19:45:38 +0000 (19:45 +0000)]
[Xml::encodeJsVar] Use FormatJson::encode / native json_encode instead
* Follows-up r110320
* XmlTest.php passes

12 years ago[Xml::encodeJsVar] Change to match FormatJson::encode output
Krinkle [Mon, 30 Jan 2012 19:40:20 +0000 (19:40 +0000)]
[Xml::encodeJsVar] Change to match FormatJson::encode output
- Pure whitespace change
- In preparation to deprecate it in favor of FormatJson / json_encode

12 years ago[jquery.qunit.completenessTest.js] typo
Krinkle [Mon, 30 Jan 2012 19:34:43 +0000 (19:34 +0000)]
[jquery.qunit.completenessTest.js] typo

12 years ago[shared.css] Fix preferences CSS bug
Krinkle [Mon, 30 Jan 2012 18:35:38 +0000 (18:35 +0000)]
[shared.css] Fix preferences CSS bug
* Apply r109054 fix from branches/RL2 to trunk
-- width: 0; doesn't work and still leaves the column open to free interpretation by the browsers. causing inconsistent widths for the "no label" columns when there are multiple of those tables on one page.
* Also dropping unneeded "!important".

12 years agorv r87948 "fix backtrace on SQL error"
Antoine Musso [Mon, 30 Jan 2012 17:36:43 +0000 (17:36 +0000)]
rv r87948 "fix backtrace on SQL error"

Looks unneeded nowaday. Backtrace is correctly appended to HTML output
or CLI output when $wgShowDBErrorBacktrace is true.

Not sure what it was supposed to fix.

12 years agoalign $wgActions array values
Antoine Musso [Mon, 30 Jan 2012 16:33:36 +0000 (16:33 +0000)]
align $wgActions array values

ping r109195

12 years agomake sure we test normalization against normalized title
Antoine Musso [Mon, 30 Jan 2012 15:54:46 +0000 (15:54 +0000)]
make sure we test normalization against normalized title

This patch fix ApiQueryTest::testTitlesGetNormalized() when $wgMetaNamespace
would contains space / underscore.

Example:
-8<-------------8<------------8<------------------8<----------8<------
1) ApiQueryTest::testTitlesGetNormalized
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     'from' => 'Project:articleA'
-    'to' => 'My_Project:ArticleA'
+    'to' => 'My Project:ArticleA'
 )
-8<-------------8<------------8<------------------8<----------8<------

This patch use Title class logic to forge a normalized title instead of
manually creating it by appending two strings.

Final fix to bug 33663 (comment 21):
https://bugzilla.wikimedia.org/show_bug.cgi?id=33663#c21

12 years agoRevert r110285, r110286. No new features in core during slush.
Siebrand Mazeland [Mon, 30 Jan 2012 13:54:43 +0000 (13:54 +0000)]
Revert r110285, r110286. No new features in core during slush.

Consider recommit after 1.19 is branched, and please add hooks.txt documentation, too.

12 years agoFollowup r110279. $count % 100 in 1..19 is few form.
Santhosh Thottingal [Mon, 30 Jan 2012 13:51:04 +0000 (13:51 +0000)]
Followup r110279. $count % 100 in 1..19 is few form.
In r110279, it was 2..19.

12 years agofollow up to r110285, fixed accidental newline
Jeroen De Dauw [Mon, 30 Jan 2012 12:54:17 +0000 (12:54 +0000)]
follow up to r110285, fixed accidental newline

12 years agoadd hook that allows changing the check to see if a page exists or not
Jeroen De Dauw [Mon, 30 Jan 2012 12:52:31 +0000 (12:52 +0000)]
add hook that allows changing the check to see if a page exists or not

12 years agofix xss
Jeroen De Dauw [Mon, 30 Jan 2012 12:24:24 +0000 (12:24 +0000)]
fix xss

12 years agophpunit testcases for lv, mg,and ml languages to test Plural
Santhosh Thottingal [Mon, 30 Jan 2012 11:40:28 +0000 (11:40 +0000)]
phpunit testcases for lv, mg,and ml languages to test Plural

12 years agoFor Moldavian $count % 100 < 20 is not 'few' form, but $count % 100 in 1..19 is few...
Santhosh Thottingal [Mon, 30 Jan 2012 11:34:36 +0000 (11:34 +0000)]
For Moldavian $count % 100 < 20 is not 'few' form, but $count % 100 in 1..19 is few form.
This was causing 200 considered as 'few' form, while it should be 'other' form as per
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#mo

Add phpunit test cases for LanguageMo plural rules

12 years agocomment mAction / whitespaces
Antoine Musso [Mon, 30 Jan 2012 11:33:16 +0000 (11:33 +0000)]
comment mAction / whitespaces

ping r110245

12 years agodrop default parameters from r110252
Antoine Musso [Mon, 30 Jan 2012 11:08:45 +0000 (11:08 +0000)]
drop default parameters from r110252

Html::nmaespaceSelector() generate a select using 'namespace' value
for both 'id' and 'name'. Hence passing:

  array( 'name' => 'namespace', 'id' => 'namespace' )

is not needed.

12 years agocomment / style for Html::namespaceSelector()
Antoine Musso [Mon, 30 Jan 2012 11:02:56 +0000 (11:02 +0000)]
comment / style for Html::namespaceSelector()

Xml.php:
* align array values. Easier to the eyes.

Html.php:
* Various comments
* Switched the way the HTML is forged

Ping r109990

12 years agotest Html::namespaceSelector() id & name attributes generation
Antoine Musso [Mon, 30 Jan 2012 10:39:51 +0000 (10:39 +0000)]
test Html::namespaceSelector() id & name attributes generation

Method was introduced by r109990.

12 years agoBug 34032 - API help header not aligned
Sam Reed [Mon, 30 Jan 2012 10:15:20 +0000 (10:15 +0000)]
Bug 34032 - API help header not aligned

$ocd++;

12 years ago@since for r105919 (hasVariant / getConverter)
Antoine Musso [Mon, 30 Jan 2012 08:10:19 +0000 (08:10 +0000)]
@since for r105919 (hasVariant / getConverter)

12 years ago* r108353: Made FileBackendMultiWrite consistency checks configurable.
Aaron Schulz [Mon, 30 Jan 2012 08:00:19 +0000 (08:00 +0000)]
* r108353: Made FileBackendMultiWrite consistency checks configurable.
* Removed redundant code from r110259 and added a comment to isValidContainerName().

12 years agoRenamed FileBackend to FileBackendStore and ugly FileBackendBase to FileBackend....
Aaron Schulz [Sun, 29 Jan 2012 22:22:28 +0000 (22:22 +0000)]
Renamed FileBackend to FileBackendStore and ugly FileBackendBase to FileBackend. Callers doing things like FileBackend::extensionFromPath() are now more proper.

12 years agoCode cleanup:
Alexandre Emsenhuber [Sun, 29 Jan 2012 22:02:27 +0000 (22:02 +0000)]
Code cleanup:
* Group global declarations at the top
* Move wfGetDB() near where it's used
* Only do some stuff when really necessary

12 years agoIn FileBackendBase/FileBackend:
Aaron Schulz [Sun, 29 Jan 2012 21:28:31 +0000 (21:28 +0000)]
In FileBackendBase/FileBackend:
* Moved some public static functions from FileBackend to FileBackendBase as the later defines the public API.
* Made splitStoragePath() return null if the backend or container name is empty.
* Made normalizeContainerPath() kill leading directory separators.
* Added more unit tests and made some documentation tweaks.
In FSFileBackend:
* Added resolveContainerName() to disallow '.' a container name, since this would cause a traversal.

12 years agoUse the WikiPage object object instead of Title to get the page id and latest revision
Alexandre Emsenhuber [Sun, 29 Jan 2012 20:35:32 +0000 (20:35 +0000)]
Use the WikiPage object object instead of Title to get the page id and latest revision

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 29 Jan 2012 19:41:17 +0000 (19:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoAdd support for loading mediawiki.util from the top by default
Krinkle [Sun, 29 Jan 2012 19:40:11 +0000 (19:40 +0000)]
Add support for loading mediawiki.util from the top by default
* Introduces $wgPreloadJavaScriptMwUtil
* Instead of loading mediawiki.util as base module from the bottom, now loading it from queue position "top" if $wgPreloadJavaScriptMwUtil is true. And if false it'll remain in the bottom in practice as implied by other modules loading it as a dependency (i.e. mediawiki.page.ready depends on it)
* Fixes bug 33746

12 years ago* Split up process cache in FileBackend into separate arrays for expensive and inexpe...
Aaron Schulz [Sun, 29 Jan 2012 19:23:26 +0000 (19:23 +0000)]
* Split up process cache in FileBackend into separate arrays for expensive and inexpensive entries. Put the local reference FSFile object cache in the former since it takes up disk space on /tmp.
* Removed FileBackendBase::resolveWikiId(); doesn't really work well with FileBackendMultiWrite and the functionality is best handled in resolveContainerName(). Follows-up r108303.
* Gave FileOp::doAttempt() a default implementation (a no-op) to be more libertarian.
* Some documentation tweaks.

12 years ago[specials] Xml::namespaceSelector > Html::namespaceSelector
Krinkle [Sun, 29 Jan 2012 19:05:25 +0000 (19:05 +0000)]
[specials] Xml::namespaceSelector > Html::namespaceSelector
* Makes front-end more reliable by not relying on Xml::namespaceSelector to use name="namespace" in it's output, which these forms where then requesting hardcoded from WebRequest
* Poke r109990

12 years ago* (bug 33967) "Previous revision" and "Newer revision" links now display the correct...
Alexandre Emsenhuber [Sun, 29 Jan 2012 19:05:04 +0000 (19:05 +0000)]
* (bug 33967) "Previous revision" and "Newer revision" links now display the correct revision

(No RELEASE-NOTES entry since that's a 1.19-only bug)

12 years agofix doc and var names
Jeroen De Dauw [Sun, 29 Jan 2012 15:24:06 +0000 (15:24 +0000)]
fix doc and var names

12 years agoallow people to actually specify post targets with a query
Jeroen De Dauw [Sun, 29 Jan 2012 15:23:23 +0000 (15:23 +0000)]
allow people to actually specify post targets with a query

12 years agoAdd function present in ordinary converter to FakeConverter
Max Semenik [Sun, 29 Jan 2012 12:49:14 +0000 (12:49 +0000)]
Add function present in ordinary converter to FakeConverter

12 years agoAdded addMissingMetadata() function to SwiftFileBackend to retroactively add metadata...
Aaron Schulz [Sun, 29 Jan 2012 11:33:47 +0000 (11:33 +0000)]
Added addMissingMetadata() function to SwiftFileBackend to retroactively add metadata (sha1) on the fly. This can be useful if files were imported from some script that doesn't set the metadata.

12 years agothis is no longer a guideline afaik
Jeroen De Dauw [Sun, 29 Jan 2012 05:37:49 +0000 (05:37 +0000)]
this is no longer a guideline afaik

12 years agoIn LockServerDaemon:
Aaron Schulz [Sat, 28 Jan 2012 20:54:19 +0000 (20:54 +0000)]
In LockServerDaemon:
* r109802: fixed references to bogus vars that are now in LockHolder.
* Tweaked doCommand() so that if a client re-connects, it's removed from the deadSessions member.
* Made all socket operations non-blocking. Uses new SocketArray helper class.
* Bumped default 'maxLocks' parameter to 10000.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 28 Jan 2012 20:37:44 +0000 (20:37 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFix unused variables
Sam Reed [Sat, 28 Jan 2012 17:05:20 +0000 (17:05 +0000)]
Fix unused variables

Fix trailing whitespace

Add/Improve documentation

Explicit member variable declaration

12 years agoFix jquery.client.test breakage
Krinkle [Sat, 28 Jan 2012 16:56:10 +0000 (16:56 +0000)]
Fix jquery.client.test breakage
* Remove both classes before adding one. Previously test ran normally on an "ltr" page because the loop starts with "ltr" and they matches naturally. It broke on pages that started out with "rtl". Fixed now
* Restored body classes after the test, otherwise both "rtl" and "ltr" would be gone, could influence other tests and layout stuff on the page.

* Follows-up r101845

12 years ago[Special:MovePage] Split new title input, fix bug 29454 (byteLimit), namespaceSelector
Krinkle [Sat, 28 Jan 2012 16:26:12 +0000 (16:26 +0000)]
[Special:MovePage] Split new title input, fix bug 29454 (byteLimit), namespaceSelector

* Two reasons:
-- Limit bug: Limit can't be enforced if the two are together
because only page_title is limited, the namespace prefix
is not part of the title. Plus even then, there is still
ambiguity with the various ways to denote namespaces (aliases)
and whitespace freedom between namespace, colon and title.
-- Extra feature: Now that the two are separate it' s easier
for users to move across namespaces as one doesn't have to type,
can't make spelling mistakes. Also, in the future we could exclude
certain target namespaces that are not possible or not allowed (now one can
perfectly submit a request to move from NS_CATEGORY or NS_FILE, only to
get a warning on submission). By showing them disabled in the drop down
this becomes clearer).

* Keeps backwards compatibility for gadgets and permalinks generated
by templates on wikis so that they can still pre-set the "new title"
from a url the old way. The new way can also be pre-set from the url,
and allows them to be set separately (wpNewTitleNs=10&wpNewTitleMain=Infobox)
* Gadgets and templates linking to Special:MovePage with a preset target
-- Old way (still works): wpNewTitle=Template:Infobox
-- New way: wpNewTitleNs=10 (and/or) wpNewTitleMain=Infobox

* Fixes bug 29454; Depends on r109990;
-- (bug 29454) Enforce byteLimit for page title input on Special:MovePage

12 years ago* In NewParserTest, made it possible to use the --use-filebackend param to run the...
Aaron Schulz [Sat, 28 Jan 2012 01:20:42 +0000 (01:20 +0000)]
* In NewParserTest, made it possible to use the --use-filebackend param to run the tests on a given registered backend.
* In FileBackendTest, killed useless recursiveClean() call.

12 years agor110180: fixed copy-paste cruft for custom backend code. Also made backend names...
Aaron Schulz [Sat, 28 Jan 2012 00:43:55 +0000 (00:43 +0000)]
r110180: fixed copy-paste cruft for custom backend code. Also made backend names consistent.

12 years agoReverted r109957 per slush (see CR comments)
Aaron Schulz [Sat, 28 Jan 2012 00:16:20 +0000 (00:16 +0000)]
Reverted r109957 per slush (see CR comments)

12 years agoUse accessor method, ping r110179
Sam Reed [Fri, 27 Jan 2012 23:19:58 +0000 (23:19 +0000)]
Use accessor method, ping r110179

12 years agoKilled the metric arseload of test folders that were being leaked and killing jenkins
Aaron Schulz [Fri, 27 Jan 2012 22:57:14 +0000 (22:57 +0000)]
Killed the metric arseload of test folders that were being leaked and killing jenkins

12 years agoFixed a bunch of dir leakage
Aaron Schulz [Fri, 27 Jan 2012 22:46:55 +0000 (22:46 +0000)]
Fixed a bunch of dir leakage

12 years agoFollow-up r83791: do not show size links for wikis which do not use a 404 transform...
Bryan Tong Minh [Fri, 27 Jan 2012 22:44:46 +0000 (22:44 +0000)]
Follow-up r83791: do not show size links for wikis which do not use a 404 transform, since this is a rather expensive operation, which can delay loading for several seconds.

12 years agoadded kml mime type
Jeroen De Dauw [Fri, 27 Jan 2012 22:11:57 +0000 (22:11 +0000)]
added kml mime type

12 years agoComments only
mrbluesky [Fri, 27 Jan 2012 22:07:09 +0000 (22:07 +0000)]
Comments only

12 years agoUse WikiPage instead of Article to call doDeleteArticle()
Alexandre Emsenhuber [Fri, 27 Jan 2012 21:21:19 +0000 (21:21 +0000)]
Use WikiPage instead of Article to call doDeleteArticle()

12 years agoYay, https
Sam Reed [Fri, 27 Jan 2012 21:16:47 +0000 (21:16 +0000)]
Yay, https

12 years ago* Group related functions
Alexandre Emsenhuber [Fri, 27 Jan 2012 21:13:25 +0000 (21:13 +0000)]
* Group related functions
* Moved isCountable() and redirect-related function a bit downward

12 years agoThe if should check $commentText, not $f, which is always set in this branch.
Platonides [Fri, 27 Jan 2012 21:06:00 +0000 (21:06 +0000)]
The if should check $commentText, not $f, which is always set in this branch.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 27 Jan 2012 20:44:55 +0000 (20:44 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFollow-up r110159: set the FilesystemIterator flags when that class is available...
Aaron Schulz [Fri, 27 Jan 2012 20:35:42 +0000 (20:35 +0000)]
Follow-up r110159: set the FilesystemIterator flags when that class is available (PHP >= 5.3). Apparently, some versions of PHP 5.3 have different defaults that others for SKIP_DOTS.

12 years ago* Reverted r108194 to support PHP < 5.3. These should already be the default iterator...
Aaron Schulz [Fri, 27 Jan 2012 20:12:50 +0000 (20:12 +0000)]
* Reverted r108194 to support PHP < 5.3. These should already be the default iterator settings.
* Also made the iterator keys (e.g. in foreach) more consistent by being integers as the other backend iterators do.

12 years agor107980: added missing dir param to FileBackendShardListIterator
Aaron Schulz [Fri, 27 Jan 2012 18:23:40 +0000 (18:23 +0000)]
r107980: added missing dir param to FileBackendShardListIterator

12 years agor107980: added missing dir param to FileBackendShardListIterator
Aaron Schulz [Fri, 27 Jan 2012 18:21:58 +0000 (18:21 +0000)]
r107980: added missing dir param to FileBackendShardListIterator

12 years agoFix spurious character from r110122
Sam Reed [Fri, 27 Jan 2012 15:03:50 +0000 (15:03 +0000)]
Fix spurious character from r110122

12 years agoSelf-revert r110124, needs more than that to support 5.2 since $flags don't exist...
Chad Horohoe [Fri, 27 Jan 2012 14:33:43 +0000 (14:33 +0000)]
Self-revert r110124, needs more than that to support 5.2 since $flags don't exist in 5.2.

Either this needs to be fixed to really support 5.2 or we'll bumping the minimum version to 5.3 this release.

12 years agoAdd documentation
Sam Reed [Fri, 27 Jan 2012 14:30:40 +0000 (14:30 +0000)]
Add documentation

Fix whitespace

12 years agoCopy FilesystemIterator constants so we can still pretend to support 5.2
Chad Horohoe [Fri, 27 Jan 2012 14:29:29 +0000 (14:29 +0000)]
Copy FilesystemIterator constants so we can still pretend to support 5.2

12 years ago$this->substPaths takes 2 parameters
Sam Reed [Fri, 27 Jan 2012 14:29:29 +0000 (14:29 +0000)]
$this->substPaths takes 2 parameters

protected function substPaths( $paths, FileBackend $backend ) {

Pass $backend from the for loop

12 years agoFix undefined $dirRoot
Sam Reed [Fri, 27 Jan 2012 14:15:29 +0000 (14:15 +0000)]
Fix undefined $dirRoot

12 years agoMinor tweak to r109161, remove trailing "this"
Chad Horohoe [Fri, 27 Jan 2012 13:27:26 +0000 (13:27 +0000)]
Minor tweak to r109161, remove trailing "this"

12 years agoFixup r109698, add setter for $namespaceNames and use proper accessors in the tests.
Chad Horohoe [Fri, 27 Jan 2012 13:00:26 +0000 (13:00 +0000)]
Fixup r109698, add setter for $namespaceNames and use proper accessors in the tests.

Since we're here: nothing uses $namespaceNames, $mNamespaceIds or $namespaceAliases
outside of this class (core or extensions) so lets make it protected.

12 years agoAdd PHPUnit tests for plural rules. For languages cs, cu, cy, dsb, fr, ga, gd, gv...
Santhosh Thottingal [Fri, 27 Jan 2012 11:13:06 +0000 (11:13 +0000)]
Add PHPUnit tests for plural rules. For languages cs, cu, cy, dsb, fr, ga, gd, gv, hr, hsb, hy, ksh, ln

12 years agoCompressed a few images
Max Semenik [Fri, 27 Jan 2012 10:00:42 +0000 (10:00 +0000)]
Compressed a few images

12 years agoUse Language::userTimeAndDate() and related to get the time with user preferences...
Alexandre Emsenhuber [Fri, 27 Jan 2012 07:23:55 +0000 (07:23 +0000)]
Use Language::userTimeAndDate() and related to get the time with user preferences instead of Language::timeanddate() and related

12 years ago* (bug 33762) QueryPage-based special pages no longer misses *-summary message
Alexandre Emsenhuber [Fri, 27 Jan 2012 07:15:18 +0000 (07:15 +0000)]
* (bug 33762) QueryPage-based special pages no longer misses *-summary message

12 years agophpunit testcases on the plural rules for am, ar, be, be_tarask, bh, bs and hi languages
Santhosh Thottingal [Fri, 27 Jan 2012 06:01:43 +0000 (06:01 +0000)]
phpunit testcases on the plural rules for am, ar, be, be_tarask, bh, bs and hi languages

12 years agoUse dataprovider for testcases.
Santhosh Thottingal [Fri, 27 Jan 2012 05:58:46 +0000 (05:58 +0000)]
Use dataprovider for testcases.

12 years ago(bug 33911) SiteStats::isSane() should not check admins anymore
Chad Horohoe [Thu, 26 Jan 2012 22:08:38 +0000 (22:08 +0000)]
(bug 33911) SiteStats::isSane() should not check admins anymore

12 years agoRemove last two vestiges of ss_admins. It still exists in some schema files, but...
Chad Horohoe [Thu, 26 Jan 2012 22:04:55 +0000 (22:04 +0000)]
Remove last two vestiges of ss_admins. It still exists in some schema files, but those are harmless

12 years agoIn FileBackendBase/FileBackend:
Aaron Schulz [Thu, 26 Jan 2012 21:05:03 +0000 (21:05 +0000)]
In FileBackendBase/FileBackend:
* Added normalizeStoragePath() function. Use it for normalizing paths in the stat cache. This way, if someone clears a non-normal form of path from the cache, it will actually work as expected.
* Removed 'abstract' flag from FileBackendBase::clearCache().
* Documentation tweaks.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 26 Jan 2012 20:39:48 +0000 (20:39 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFurther reduced RTTs in SwiftFileBackend by making "file already exists" checks use...
Aaron Schulz [Thu, 26 Jan 2012 20:17:18 +0000 (20:17 +0000)]
Further reduced RTTs in SwiftFileBackend by making "file already exists" checks use the stat cache, typically already set in FileOp::doPrecheck(). FileBackendBase::doOperationsInternal() already clears the cache after locking (and before FileOp::attemptBatch) for consistency.

12 years agoUnused global
Platonides [Thu, 26 Jan 2012 17:16:41 +0000 (17:16 +0000)]
Unused global

12 years ago* Do the page existence check before calling ignore_user_abort() so that we don't...
Alexandre Emsenhuber [Thu, 26 Jan 2012 16:44:29 +0000 (16:44 +0000)]
* Do the page existence check before calling ignore_user_abort() so that we don't return after having modified that value
* Change the check to use $oldid since we already have the result of getLatest()

12 years agoupdate Message class doc
Antoine Musso [Thu, 26 Jan 2012 14:55:38 +0000 (14:55 +0000)]
update Message class doc

Ping r110054

12 years agoFix r110054, \ -> @
Chad Horohoe [Thu, 26 Jan 2012 13:45:50 +0000 (13:45 +0000)]
Fix r110054, \ -> @

12 years agoenhance doxygen generation for Message class
Antoine Musso [Thu, 26 Jan 2012 11:34:30 +0000 (11:34 +0000)]
enhance doxygen generation for Message class

12 years agosanitize outgoing messages
Neil Kandalgaonkar [Thu, 26 Jan 2012 02:15:04 +0000 (02:15 +0000)]
sanitize outgoing messages

12 years ago* In NewParserTest, refactored code to use FileBackend (bug 31737). Also made some...
Aaron Schulz [Wed, 25 Jan 2012 23:11:53 +0000 (23:11 +0000)]
* In NewParserTest, refactored code to use FileBackend (bug 31737). Also made some speed improvements and made regex= not flood the output with 600 items of crap.
* In FileBackendTest, call clean() on the dirs *after* deleting all the files first.
* Speed improvements to MediaWikiTestCase.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 25 Jan 2012 20:38:04 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRevert from 107187 to 107186 for bug24430 patch, it causes layout issue
Benny Situ [Wed, 25 Jan 2012 18:26:46 +0000 (18:26 +0000)]
Revert from 107187 to 107186 for bug24430 patch, it causes layout issue

12 years agoRevert from 107188 to 107187 for bug24430 patch, it causes layout issue
Benny Situ [Wed, 25 Jan 2012 18:22:02 +0000 (18:22 +0000)]
Revert from 107188 to 107187 for bug24430 patch, it causes layout issue

12 years agoRevert from 108870 to 108869 since bug24430 patch got reverted
Benny Situ [Wed, 25 Jan 2012 18:17:45 +0000 (18:17 +0000)]
Revert from 108870 to 108869 since bug24430 patch got reverted

12 years agoRevert from 109557 to 109556 for bug24430 patch, it causes layout issue
Benny Situ [Wed, 25 Jan 2012 18:05:54 +0000 (18:05 +0000)]
Revert from 109557 to 109556 for bug24430 patch, it causes layout issue

12 years agobug 33646 Badtitle error page now emits a 400 HTTP status.
Antoine Musso [Wed, 25 Jan 2012 10:51:37 +0000 (10:51 +0000)]
bug 33646 Badtitle error page now emits a 400 HTTP status.

Sending a 200 OK status on bad title, prevents mobile browsers to
actually now the page is an error page.

Tested using:
 curl -I http://localhost/wiki/\]\]
 curl -I http://localhost/wiki/Special:BadTitle

12 years agoFix broken unit test
Krinkle [Wed, 25 Jan 2012 03:45:01 +0000 (03:45 +0000)]
Fix broken unit test
* r109993 broke the test by overwriting namespaces it tried to preserve
* tearDown should always have the opposite order of the overrides in setUp
* Adding wgLanguageCode while at it, no reason not to, just in case.

-- Follows-up r109993

12 years ago[Html] Unit test + bugfix Html::namespaceSelector
Krinkle [Wed, 25 Jan 2012 03:25:54 +0000 (03:25 +0000)]
[Html] Unit test + bugfix Html::namespaceSelector
* Previously it was passing $selectAttribs['name'] to Xml::label, which uses its value for the <label for=""> attribute. This works as long as $selectAttribs['id'] and $selectAttribs['name'] match, but when they don't it fails. <label for=""> always corresponds with <{input,text area,select} id=""> in browsers, never with "name".
* Make name/id match eachother by default to avoid backwards compatibility breakages (they used to match in the Xml class method as well)
* Add HtmlTest.php entries similar to the ones in XmlTest
* Fix E_NOTICE about $params['selected'], default to ''

-- Follows-up r109974, r109698, r109990
-- Bug originally introduced in r41425
-- XmlTest.php still runs successfully
-- HtmlTest.php runs successfully

12 years ago[Xml/Html] new method Html::namespaceSelector
Krinkle [Wed, 25 Jan 2012 03:01:20 +0000 (03:01 +0000)]
[Xml/Html] new method Html::namespaceSelector
* Using params and option arrays instead of 4 random parameters like Xml::namespaceSelector did
* Right now it's passing $selectAttribs['name'] to Xml::label, this is done because that's what Xml::namespaceSelector did. However it's wrong since labels associate over ID not NAME. Will fix in the next commit, making sure unit tests stay functional first. This bug has been in Xml::namespaceSelector for a long time but usually unnoticed as people kept either defaults. Although it was easy to get wrong as the NAME was configurable but the ID was hardcoded in Xml::namespaceSelector.
* Deprecated Xml::namespaceSelector and made it cal Html::namespaceSelector

* Follows-up r109974, r109698
* XmlTest.php still runs successfully

12 years agogit should ignore image directories and cache files
Neil Kandalgaonkar [Wed, 25 Jan 2012 02:15:42 +0000 (02:15 +0000)]
git should ignore image directories and cache files

12 years agoIn FileBackend:
Aaron Schulz [Wed, 25 Jan 2012 01:57:28 +0000 (01:57 +0000)]
In FileBackend:
* Use 'b' param in some fopen() calls as needed for Windows and newline handling.
* Removed some useless padding code in FileBackend::getContainerShard(). Initialized $m to make IDE happy.
* Updated some code comments.
In SwiftFileBackend:
* Manually set the ETag when using php-cloudfiles for creating files to avoid https://github.com/rackspace/php-cloudfiles/issues/59.
* Manually set the content type based on how StreamFile::getType(). This makes it safe to read files directly out of the proxy to end-users. The streamFile() backend functions already uses a similar content-type check.