daniel [Tue, 6 Nov 2012 13:05:30 +0000 (14:05 +0100)]
(Bug 41706) preload to convert content as needed.
Use the new Content::convert function to convert preloaded content
if the page being edited uses a different content model. This allows
e.g. a page like User:Foo/bar to be preloaded when creating
User:Foo/common.css. This currently fails, because it is not possible
to use wikitext to pre-fill a CSS page.
Change-Id: I70656b41bd203e5722528e889a242fa54cbfbf62
Brad Jorsch [Mon, 12 Nov 2012 05:42:26 +0000 (21:42 -0800)]
(bug 41990) Fix regression in API edit of redirect
Before ContentHandler, an API edit passing a redirect for title and
redirect=true and omitting basetimestamp would use the last revision
timestamp of the target page. When ContentHandler was merged, this was
accidentally changed to use the last revision timestamp of the redirect
page, which was likely much earlier than the target page's last revision
and so causes an edit conflict in almost all cases.
Some scripts took advantage of this along with appendtext to add notices
to users' talk pages, so restore that old behavior. We'll also adjust
the contentmodel/contentformat detection added by ContentHandler to use
the model and format of the target page rather than the redirect in this
case, as that seems more likely to be less wrong.
Change-Id: If0c674e26a4deb54ec14f0bf45418d666a397347
daniel [Mon, 12 Nov 2012 13:37:32 +0000 (14:37 +0100)]
fix conflict marker in comment
Change-Id: I23e9593890ab5899e10d8eb61f63f38fb98072a7
Brad Jorsch [Mon, 12 Nov 2012 04:53:22 +0000 (20:53 -0800)]
(bug 42036) Account creation email link needs protocol
In other words, use $wgCanonicalServer instead of $wgServer.
Change-Id: I110db4d27ce935d732e16830951af0f349e99e99
TheDJ [Sun, 11 Nov 2012 21:06:49 +0000 (21:06 +0000)]
Merge "Fix E_STRICT in ForeignAPIRepo"
Translation updater bot [Sun, 11 Nov 2012 21:06:35 +0000 (21:06 +0000)]
Merge "Localisation updates from translatewiki.net."
Translation updater bot [Sun, 11 Nov 2012 20:29:48 +0000 (20:29 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I6b4b6352c7debed2fab97b7f72f960613f41c496
IAlex [Sun, 11 Nov 2012 20:23:41 +0000 (20:23 +0000)]
Merge "Remove unneeded third param"
IAlex [Sun, 11 Nov 2012 20:18:46 +0000 (20:18 +0000)]
Merge "Set wgLanguageCode/wgContLang for backup_PageTest.php"
IAlex [Sun, 11 Nov 2012 20:15:16 +0000 (20:15 +0000)]
Merge "fix @depends"
Demon [Sun, 11 Nov 2012 19:16:38 +0000 (19:16 +0000)]
Merge changes I4ac3bc14,I470acb8b
* changes:
make addPortletLink work with CologneBlue
(bug 18338) WAI-ARIA landmark roles in most used skins
Nikerabbit [Sun, 11 Nov 2012 08:14:35 +0000 (08:14 +0000)]
Merge "Make sure that SQLite uses no prefix"
Amir E. Aharoni [Sun, 11 Nov 2012 04:39:37 +0000 (10:09 +0530)]
Cleanup Hebrew grammar code a little.
Added comments and changed == to ===.
Change-Id: I3124bfd7341b1b3b46bb3e5215001d6967845f48
Krinkle [Sat, 10 Nov 2012 20:53:02 +0000 (20:53 +0000)]
Merge "test classes autoloading path was broken"
Antoine Musso [Sat, 10 Nov 2012 20:39:54 +0000 (21:39 +0100)]
test classes autoloading path was broken
Since
7c6c05a, the ORMTableTest and SeleniumTestConstants classes points
to a wrong path. The reason is the variable name has not been renamed
for them.
Change-Id: I430031d0d00a8f0da047184285d1797a145bd389
Translation updater bot [Sat, 10 Nov 2012 20:33:18 +0000 (20:33 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ic5565a4999b2212f6be13506f413ac918c6e8fc0
Ori Livneh [Sat, 10 Nov 2012 19:49:36 +0000 (11:49 -0800)]
Removed unused var from jquery.badge.js
Change-Id: Ia3313ee272218d6467675e8e855710a9365d3fa2
umherirrender [Sat, 10 Nov 2012 19:15:03 +0000 (20:15 +0100)]
fix @depends
No need for the parentheses there
Change-Id: Id2ba72a7fb7bdd592de0642468994c9dab29adcd
umherirrender [Sat, 10 Nov 2012 18:50:13 +0000 (19:50 +0100)]
Set wgLanguageCode/wgContLang for backup_PageTest.php
There is namespace handling, which fails on $wgLanguageCode = 'de';
Change-Id: I99a4a1837e5db5eb22cb879898da3ac37439264d
Timo Tijhof [Wed, 7 Nov 2012 01:27:30 +0000 (02:27 +0100)]
(bug 41833) Test: Add AutoLoaderTest.
* Move scattered pieces from tests/* in main AutoLoader.php
into tests/TestsAutoLoader.php.
Verified with:
'ack -Q i --ignore-dir tests/phpunit/ <classname>'
on mediawiki/core that these classes are not used outside
tests/phpunit/.
* Moved entry for maintenance/backup.inc to the main AutoLoader.
* Refactored assertion logic in maintenance/checkAutoLoader.php
into a public static method used in it's execute method
and in the (new) AutoLoaderTest suite.
* The new test was immediately failing, added missing classes
and removed old ones that don't exist.
And CheckAutoLoader itself, so that it can actually be used
in AutoLoaderTest.php
* Per discussion on Gerrit, moved the logic into the unit test
instead of refactoring the maintenance script, we no longer
need the maintenance script.
* Fixed the regex to also detect abstract, final and interface.
The test was failing badly, claiming many classes did not
exist.
* Improved the logic to also catch entries in the AutoLoader
configuration for inexisting classes in existing files.
So far it only catched entries with wrong files and missing
entries for classes in known files.
An entry like "BlablaSomethingHere => includes/Action.php"
did not emit any kind of warning. The refactored logic
builds a reverse index and uses a simple assertEquals to
find any inconsistencies (whatever the cause).
Change-Id: I0a307f23175d52345180cdfc7c2d5e172536be1b
Daniel Kinzler [Sat, 10 Nov 2012 16:18:12 +0000 (17:18 +0100)]
avoid STDERR diff3 messages when using wfMerge()
diff3 issues a warning to stderr if any of the files does not end with a
newline character.
TextContent::preSaveTransform() does normalize revision text by simply
calling trim(). Thus to avoid a diff3 error we simply apply the same
normalization and add a newline to please the command.
Change-Id: I7baa3df95dd70cbc865b2491ccc791e60f8b9e6e
Hashar [Sat, 10 Nov 2012 16:44:44 +0000 (16:44 +0000)]
Merge "(Bug 41352) Provide tests for edit conflicts."
daniel [Sat, 10 Nov 2012 16:24:48 +0000 (17:24 +0100)]
(Bug 41352) Provide tests for edit conflicts.
This provides several test cases for EditPage, including some for
detecting and resolving edit conflicts. This is in preparation for
finding and eliminating the root cause of bug 41352.
Change-Id: I8f23c6535f7b3ee6462d9c5a19dd06070e77f9d1
umherirrender [Sat, 10 Nov 2012 16:23:32 +0000 (17:23 +0100)]
Remove unneeded third param
the 'messages' are already part of 'preload', so there is no need for
that. Last changes there: r101507/r102304
Change-Id: I6c9daa3c46bd7f1db851cc4620ecf59f81e6f9aa
Reedy [Sat, 10 Nov 2012 16:15:56 +0000 (16:15 +0000)]
Merge "Follow-up Ib2b8dfb8 (
803abc7): fix a typo in a variable name"
Alexandre Emsenhuber [Sat, 10 Nov 2012 16:12:45 +0000 (17:12 +0100)]
Follow-up Ib2b8dfb8 (
803abc7): fix a typo in a variable name
$mRetypePass should exist, the correct name is $mRetype.
Change-Id: I0bd65951f42a244a8810087f900b4a3c82358405
IAlex [Sat, 10 Nov 2012 16:11:33 +0000 (16:11 +0000)]
Merge "Explicitly define member variables"
Alexandre Emsenhuber [Sat, 10 Nov 2012 15:29:56 +0000 (16:29 +0100)]
* (bug 41966) Follow-up I551a90b0 (
c2172d4): fix fatal error in PoolWorkArticleView::doWork()
The error is Fatal error: Call to a member function getParserOutput() on a non-object in includes/WikiPage.php on line 3363.
The problem is that if the fifth parameter passed to PoolWorkArticleView::__construct() is not given or is null, which is now
the case since the change mentioned on the first line of this commit summary, the content is fetched from Page::getContent().
When the Page object is a WikiPage instance there is no problem, but when this is an Article instance, Article::getContent()
actually returns the content as *string* and not as object, like it did before the Wikidata branch merge.
Worked arround this by passing the WikiPage object to PoolWorkArticleView from Article::view().
Also removed non-existing sixth parameter to PoolWorkArticleView::__construct().
Change-Id: I537862f519542de4f034be29bba4b75898382f59
Reedy [Sat, 10 Nov 2012 15:05:02 +0000 (15:05 +0000)]
Explicitly define member variables
Change-Id: Ib2b8dfb84570557f1aeab474f4939e3a657c5732
daniel [Mon, 29 Oct 2012 17:38:11 +0000 (18:38 +0100)]
(Bug 41244) Gracefully handle failure to load text blob.
This change fixes fatal errors ocurring when Revision::loadText
returns false because of a failure to load the text blob.
Revision::getContent() should simply return null in such a case.
Change-Id: I1e13de14ff15b124b5a2e07155d368595a16fda7
Reedy [Sat, 10 Nov 2012 13:47:47 +0000 (13:47 +0000)]
Merge "(Bug 41352) Proper fix for vanishing content."
Alexandre Emsenhuber [Sat, 10 Nov 2012 13:02:51 +0000 (14:02 +0100)]
Follow-up I551a90b0 (
c2172d4): add one more check for null content
Change-Id: Ifa26ea8df0c5dd1f4c6ecabb9c8020bb84401ea3
IAlex [Sat, 10 Nov 2012 12:17:21 +0000 (12:17 +0000)]
Merge "Beware that getContent() may return null"
IAlex [Sat, 10 Nov 2012 11:54:10 +0000 (11:54 +0000)]
Merge "Simplify cached check in Special:SpecialPages"
Hashar [Sat, 10 Nov 2012 11:52:26 +0000 (11:52 +0000)]
Merge "Lint: Go-go-gadget jshint! Passing entire JS code base (again)."
Timo Tijhof [Wed, 26 Sep 2012 07:14:52 +0000 (09:14 +0200)]
Lint: Go-go-gadget jshint! Passing entire JS code base (again).
There were still some files not passing jshint, and for files
that did, we managed to screw 'em up again.
Added more explicit settings in .jshintrc to avoid relying on a
kind of default somewhere. There are too many default-factors:
closest(.jshintrc), ~/.jshintrc, IDE/editor, node-jshint..
Added node_modules/ and extensions/ to .jshintignore.
Previously "$ jshint ." would recurse over all kinds of
unrelated code. Extensions should have their own jshint
dotfiles. When linting from Jenkins this won't be a problem as
those will be ran per repo (so when linting core it will skip extensions and when in an extension dir, the core dotfiles
don't apply as they'll be out of scope).
Some of our modules are really messy and should be refactored
to be less spaghetti-ish and have more descriptive variable
names and more manageable function-level complexity.
But for this commit, I'm keeping it as much as-is as possible,
because its hard/large enough to review as it is.
A few errors are cited below to give an impression of the kind
of warnings I addressed (for cases where the diff isn't
so obvious):
* jquery.hidpi.js: line 110, col 15, Empty block.
* mediawiki.jqueryMsg.js: line 34, col 17, Too many var statements.
* mediawiki.jqueryMsg.js: line 145, col 33, Strings must use singlequote.
* mediawiki.action.edit.js: line 74, col 73, 'selectText' is defined but never used.
* startup.js: line 19, col 22, 'isCompatible' is defined but never used.
* jquery.byteLength.test.js: line 26, col 9, Identifier 'U_00A2' is not in camel case.
* jquery.localize.test.js: line 63, col 29, 'attrs' is defined but never used.
* mediawiki.cldr.test.js: line 72, col 27, 'mw' is not defined.
* mediawiki.jscompat.test.js: line 6, col 17, Strings must use singlequote.
* mediawiki.api.parse.test.js: line 9, col 17, Strings must use singlequote.
* mediawiki.api.parse.test.js: line 7, col 15, 'mw' is not defined.
* mediawiki.api.parse.test.js: line 14, col 24, '$' is not defined.
* mediawiki.api.test.js: line 43, col 28, 'data' is defined but never used.
Other fixes:
* Add closures fix implied global errors ($, mw and more),
and prevents local variables from becoming globals.
* Avoid jQ magic map arg etc. (per code conventions).
* Fix incorrect usage of jQuery methods (prop instead of attr,
prop false instead of removeProp, ..).
* Unquote keys in object literals for consistency, and
enforce single quotes (no magic quotes in javascript, as much
as we might think "\n" and '/n' are really exactly the same).
Chose single quotes over double quotes since that's what most
code already had and what conventions seemed to prefer
(both the old generic ones and the new per-lang ones since
2011/2012).
* Enforce camelCase variable names with jshint per code
conventions.
* $foo.on('x', fn).trigger('x') -> $foo.on('x', fn); fn()
(No event simulation overhead, unless intended of course)
* Incorrect indentation (ignore whitespace in the diff!).
* Avoid proprietary selectors like ':first' when .eq(0)
afterwards is just as possible (significantly faster in
jQuery due to mostly avoiding the Sizzle engine and going
native in modern browsers).
* When at it, convert deprecated jQuery methods to new ones.
Mostly just .delegate(sel, type, fn) -> .on(type, sel, fn).
* Addressed whitespace here and there.
Interesting:
* mediawiki.js: local function "compare" wasn't used anymore
(hasn't been in a while!) removed per jshint warning.
* mediawiki.special.recentchanges.js: Was a mess, only a few
lines of code, rewritten.
Pfew, let's hope it's the last one before we lint from Jenkins!
Change-Id: I23ad60a1d804c542d9b91454aaa20ce7be4ff289
Siebrand [Sat, 10 Nov 2012 10:28:05 +0000 (10:28 +0000)]
Merge "Add grammar tests for Hebrew"
TheDJ [Sat, 10 Nov 2012 10:09:43 +0000 (10:09 +0000)]
Merge "(bug 35923) tweaks to mediawiki.action.history.diff.css"
Max Semenik [Sat, 10 Nov 2012 09:54:10 +0000 (15:24 +0530)]
Make sure that SQLite uses no prefix
Otherwise, when user selects MySQL, sets the prefix,
then switches to SQLite, the tables will created with prefix
however the prefix will be absent from LocalSettings, making the
wiki dead on arrival.
Change-Id: I6360af819f87b03c2e9967207c43bca95f931a00
Amir E. Aharoni [Sat, 10 Nov 2012 09:45:27 +0000 (15:15 +0530)]
Add grammar tests for Hebrew
Change-Id: I0114c87ec63cc224f42c81497af41fe6e72a59bc
IAlex [Sat, 10 Nov 2012 07:44:25 +0000 (07:44 +0000)]
Merge "Minor fixes to User and ApiQueryUsers"
Translation updater bot [Fri, 9 Nov 2012 22:00:43 +0000 (22:00 +0000)]
Merge "Localisation updates from translatewiki.net."
Translation updater bot [Fri, 9 Nov 2012 21:42:28 +0000 (21:42 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Id8e5a864eab7b0165aaa5bdb4546c54bff3e9364
IAlex [Fri, 9 Nov 2012 21:38:09 +0000 (21:38 +0000)]
Merge "It should not be possible for a RequestContext's WikiPage and Title to be different."
Marius Hoch [Fri, 9 Nov 2012 21:23:14 +0000 (22:23 +0100)]
Minor fixes to User and ApiQueryUsers
I've fixed several PHP notices and the problem that rights returned
by User::getRights() might have duplicates if altered by a hook
(same for User::getEffectiveGroups).
Change-Id: Id92af387d8c09414076bac40e83052cd6f913f42
daniel [Wed, 24 Oct 2012 13:00:13 +0000 (15:00 +0200)]
Beware that getContent() may return null
Before the introduction of the content handler, missing content was
signified by getText() returning null instead of a string. null will
work much like an empty string in most contexts, so in many places,
it was not checked explcitely whether the conent was null.
Now, when getContent() returns null, this often caused a fatal error,
because the code would access whatever getContent() returned as an object,
without checking whether it was null (because no such check was performed
previously, when the content was represented as a string).
This check introduces explicite checks for getContent() returning null
in the most essential core classes.
Change-Id: I551a90b0b67b8edc7570ca5d252ecc1de903f097
Kaldari [Fri, 9 Nov 2012 18:22:33 +0000 (18:22 +0000)]
Merge "Sanitize text input to $.fn.badge"
Nikerabbit [Fri, 9 Nov 2012 17:55:23 +0000 (17:55 +0000)]
Merge "Define $wgAlwaysUseTidy to false where needed in unit tests"
Ori Livneh [Fri, 9 Nov 2012 17:15:23 +0000 (09:15 -0800)]
Sanitize text input to $.fn.badge
Closes a potential XSS vector, as pointed out by Krinkle in
32091.
Change-Id: Iea702fb8736799dc7f8238e4cb357da22304c1dd
umherirrender [Fri, 9 Nov 2012 15:57:54 +0000 (16:57 +0100)]
Simplify cached check in Special:SpecialPages
There is no need to repeat the condition from QueryPage::isCached and
check the misermode self.
Moved the method QueryPage::isCached to SpecialPage::isCached for easy
calling. Maybe in future some special pages would get cached and define
its own condition for that, so making false as default.
Simplify a count and add some spaces.
Change-Id: I71c9991e136f9c1a6a0123ae5305b39777d9135c
Siebrand [Fri, 9 Nov 2012 15:40:31 +0000 (15:40 +0000)]
Merge "Change copy of talk page link in personal tools"
Alexandre Emsenhuber [Fri, 9 Nov 2012 15:02:37 +0000 (16:02 +0100)]
Fix E_STRICT in ForeignAPIRepo
The error is "Strict Standards: Declaration of ForeignAPIRepo::getZoneUrl() should be compatible with that of FileRepo::getZoneUrl() in includes/filerepo/ForeignAPIRepo.php on line 426".
The second parameter of ForeignAPIRepo::getZoneUrl() was missing.
Change-Id: I8f60ff9d6152225ae99c1420d3a80c72c40974eb
Hashar [Fri, 9 Nov 2012 13:14:27 +0000 (13:14 +0000)]
Merge "fix testEditCount to work with non-wikitext content in main NS"
aude [Thu, 8 Nov 2012 12:04:24 +0000 (12:04 +0000)]
move ORMTableTest from Wikibase to core
- this is more generally useful than to be buried inside Wikibase client.
- it was in Wikibase/client/tests/phpunit/includes/store/EntityCacheTableTest.php
- patchset 2: add to test autoloader
Change-Id: I5bc41d6d205f28bcc5bf0c8a78b782c8888c18eb
Kaldari [Fri, 9 Nov 2012 02:19:04 +0000 (18:19 -0800)]
Oops, restoring the line I accidently deleted.
Change-Id: Iefef1881648190c96ac8f6e0b57642018beb3643
Ori.livneh [Fri, 9 Nov 2012 01:25:01 +0000 (01:25 +0000)]
Merge "(bug 39383, bug 40059) Allowing badges to use strings and returning this"
Kaldari [Tue, 6 Nov 2012 19:46:22 +0000 (11:46 -0800)]
(bug 39383, bug 40059) Allowing badges to use strings and returning this
Change-Id: Ic79c6116dfb3c7248eae4ad66092bd1edb8ef0a2
Ori Livneh [Sun, 4 Nov 2012 09:02:43 +0000 (01:02 -0800)]
Change copy of talk page link in personal tools
Adds message with key "mytalk-parenthetical", specifying the
text for "Talk" when it is wrapped in parentheses and
conjoined to the user page label.
Change is guarded by config variable "wgVectorCombineUserTalk",
set to false by default (which preserves the old behavior).
Per discussion on IRC and in
https://bugzilla.wikimedia.org/show_bug.cgi?id=41672
Change-Id: I822a73901c9b220983356e9e4a4ad5e7f8ebc7f1
Aaron Schulz [Wed, 7 Nov 2012 22:21:23 +0000 (14:21 -0800)]
[FileJournal] Randomly prune old log entries.
Change-Id: I667bfdaf167f2154d833b06de7115b4b292a0d2b
Aaron Schulz [Fri, 9 Nov 2012 00:18:28 +0000 (16:18 -0800)]
Put a 15 minute limit on the cache key lock in nextJobDB.php
Change-Id: I673539d8f77bdbce61023c8113c0f8d7a3016a32
Aaron Schulz [Sat, 3 Nov 2012 00:31:25 +0000 (17:31 -0700)]
[JobQueue] Abstracted nextJobDB.php to not assume JobQueueDB.
* Changed the use of caching to avoid cache slams by having runners
fall back to the old "queues with jobs" cache value when another
process is updating the cache. Also bumped the cache key version.
Change-Id: I6d5f32ab846c14a25afe8c5957443ed95a1d7bd2
Aaron Schulz [Tue, 6 Nov 2012 20:49:40 +0000 (12:49 -0800)]
[FileBackend] Added getFileHttpUrl() function.
* This can speed up certain video file operations for scripts that support
specifying source files via URLs and support HTTP Range headers.
* Updated unit tests.
Change-Id: I60cb95c2e3dd9f7df1f740e9182be7c79af69d6e
Subramanya Sastry [Thu, 8 Nov 2012 22:43:47 +0000 (22:43 +0000)]
Merge "Add a test for named vs. positional parameter whitespace stripping"
Subramanya Sastry [Thu, 8 Nov 2012 22:41:22 +0000 (22:41 +0000)]
Merge "More parameter stripping tests: nested and single-line"
Gabriel Wicke [Thu, 8 Nov 2012 22:18:05 +0000 (14:18 -0800)]
More parameter stripping tests: nested and single-line
Change-Id: I3140932539078b24d0e39d45f5305ce9d5dbe7a9
Gabriel Wicke [Thu, 8 Nov 2012 22:04:08 +0000 (14:04 -0800)]
Add a test for named vs. positional parameter whitespace stripping
Change-Id: Ic673cc224c41aa452bf8d97fc0f1e06fcf2befed
Subramanya Sastry [Thu, 8 Nov 2012 21:57:41 +0000 (21:57 +0000)]
Merge "Add parser tests for template-generated table cell with attributes"
Subramanya Sastry [Thu, 8 Nov 2012 21:15:00 +0000 (21:15 +0000)]
Merge "Test broken br tag sanitization"
Subramanya Sastry [Thu, 8 Nov 2012 21:14:16 +0000 (21:14 +0000)]
Merge "Add test for </pre> inside nowiki block"
Gabriel Wicke [Thu, 8 Nov 2012 21:03:31 +0000 (13:03 -0800)]
Test broken br tag sanitization
Change-Id: I9c1240d1c160be049f10928b269491cafd2ea481
Translation updater bot [Thu, 8 Nov 2012 20:55:29 +0000 (20:55 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I5f3c6d283b153706e6a6422f564072e1b1d8f739
Gabriel Wicke [Thu, 8 Nov 2012 20:47:18 +0000 (12:47 -0800)]
Add test for </pre> inside nowiki block
Change-Id: I8ef71b65f57e348f50e77486d2563b0b5e1a6f8e
Gabriel Wicke [Thu, 8 Nov 2012 19:49:02 +0000 (11:49 -0800)]
Add parser tests for template-generated table cell with attributes
Inspired by Parsoid commit https://gerrit.wikimedia.org/r/#/c/30794/.
Change-Id: Ieb03bd6149bf00c822ce3884a0c3517416905240
IAlex [Thu, 8 Nov 2012 19:15:19 +0000 (19:15 +0000)]
Merge "Add test for bracketed external links with invalid template-generated target"
IAlex [Thu, 8 Nov 2012 19:10:55 +0000 (19:10 +0000)]
Merge "(bug 41899) Fix "Undefined index: start" notice"
IAlex [Thu, 8 Nov 2012 18:58:49 +0000 (18:58 +0000)]
Merge "Add RecentChange::selectFields and use it"
Kevin Israel [Thu, 8 Nov 2012 18:37:06 +0000 (13:37 -0500)]
(bug 41899) Fix "Undefined index: start" notice
Unsetting the continue param rather than setting it to null
results in this PHP error message.
Patchset 2: added release note.
Change-Id: Ieb6be0ac047d6a4a46fb6522fbbdc058bb386411
Gabriel Wicke [Thu, 8 Nov 2012 18:57:00 +0000 (10:57 -0800)]
Add test for bracketed external links with invalid template-generated target
Change-Id: Ic8746ba894d0deb937ce07429b6e471ef647023e
umherirrender [Thu, 8 Nov 2012 18:25:59 +0000 (19:25 +0100)]
Add RecentChange::selectFields and use it
This avoids * in SELECTs
Change-Id: I218c93f23b650e597db1ae2055dc536f2cc195a3
daniel [Thu, 25 Oct 2012 16:59:56 +0000 (18:59 +0200)]
(Bug 41352) Proper fix for vanishing content.
This reverts the temporary fix in I4c2055be and instead fixes the
resolution of merge conflicts using Contenthandler::merge3.
Change-Id: I0b1db6d76c0678d0ce795720e513e16e28e907d4
aude [Thu, 8 Nov 2012 17:05:46 +0000 (18:05 +0100)]
fix testEditCount to work with non-wikitext content in main NS
consistent with WikiPageTest and other places, perform the test
with the Help namespace as a workaround for now.
Change-Id: I2b766c17f35e0e79662b6302c122225a1a33e7be
IAlex [Thu, 8 Nov 2012 12:37:00 +0000 (12:37 +0000)]
Merge "Add profiling for database interaction"
Siebrand Mazeland [Mon, 8 Oct 2012 13:44:44 +0000 (15:44 +0200)]
Add profiling for database interaction
Also reformat some code.
Change-Id: Iee18ffeab422bdd2581aab7cab0eab482aec3a80
IAlex [Thu, 8 Nov 2012 11:32:50 +0000 (11:32 +0000)]
Merge "Add since 1.20 for Revision::READ_LATEST"
IAlex [Thu, 8 Nov 2012 11:07:46 +0000 (11:07 +0000)]
Merge "put SpecialMovepageAfterMove hook after success message output"
Aaron Schulz [Tue, 30 Oct 2012 11:04:05 +0000 (04:04 -0700)]
[FileBackend] Avoid some stat calls in various operations.
* copy() and rename() will overwrite any destination, including on Windows.
Tested with Windows 7, and even rename() does this. The /Y flag is also
set for Windows cmd commands now.
* Set the "binary mode" /B flag for Windows cmd commands.
Change-Id: Id11f31b020f786d5b66b0c57298ecc2b9d6170fb
Aaron Schulz [Tue, 16 Oct 2012 21:57:58 +0000 (14:57 -0700)]
Simplified thumb.php for 404 handling.
* Made thumb_handler.php "just work" in a way similar to img_auth.
It no longer needs any "handlerUrl" setting to be set.
Change-Id: I557ba1f94db3cef0f21f5c0e2b60d8e381ea3f96
Aaron Schulz [Sat, 13 Oct 2012 00:24:31 +0000 (17:24 -0700)]
[FileRepo] Allow different file URLs for media based on file extension.
Change-Id: Ib647377312c93c8ed046f7b9510d0e656788cdc3
Siebrand Mazeland [Thu, 8 Nov 2012 06:04:02 +0000 (07:04 +0100)]
Add since 1.20 for Revision::READ_LATEST
Change-Id: Ifd33f6eca5478e2dc4d8092d509d5ca4f3eda34a
Aaron Schulz [Thu, 8 Nov 2012 01:28:30 +0000 (01:28 +0000)]
Merge "Fix test for view language for non-wikitext in main NS."
Subramanya Sastry [Thu, 8 Nov 2012 00:25:51 +0000 (00:25 +0000)]
Merge "Add a test for an uncovered bullet in a deeply nested list"
Gabriel Wicke [Wed, 7 Nov 2012 23:17:22 +0000 (15:17 -0800)]
Add a test for an uncovered bullet in a deeply nested list
Also document testing issues in this area in a comment.
Change-Id: I2f753764e3aa2f9d4bbd146f48b43021a5b07c63
Alexandre Emsenhuber [Wed, 7 Nov 2012 22:08:56 +0000 (23:08 +0100)]
Define $wgAlwaysUseTidy to false where needed in unit tests
Tidy changes some whitespaces in the HTML which breaks the tests if enabled.
Change-Id: Ib44f60c0d4b595c76c258b41962c3c45ca21ac3e
Aaron Schulz [Wed, 7 Nov 2012 21:42:31 +0000 (13:42 -0800)]
Added GET profiling to pecl memcached (like the PHP one has).
Change-Id: Ic92eb740240e2cb46688a174cdeda87c02d4d498
Aaron Schulz [Wed, 7 Nov 2012 20:39:09 +0000 (20:39 +0000)]
Merge "Content::convert() for conv. betw. content models."
Translation updater bot [Wed, 7 Nov 2012 20:39:03 +0000 (20:39 +0000)]
Merge "Localisation updates from translatewiki.net."
Translation updater bot [Wed, 7 Nov 2012 20:26:38 +0000 (20:26 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ie41944c54b8e30a46f6030c36e54a7734262f797
IAlex [Wed, 7 Nov 2012 19:42:36 +0000 (19:42 +0000)]
Merge "(bug 41793) Make contribs. link on Special:ListUsers red for users with 0 edits"
Marius Hoch [Tue, 6 Nov 2012 21:49:28 +0000 (22:49 +0100)]
(bug 41793) Make contribs. link on Special:ListUsers red for users with 0 edits
The link to the user contributions on Special:ListUsers weren't red
as the needed parameter for this wasn't set in the call to
Linker::userToolLinks and User::getEditCount returned strings while
it was supposed to return integers.
Change-Id: I8d5faaedefec02d309e3e9c2da80f135b44fa5f1
Aaron Schulz [Wed, 7 Nov 2012 18:48:58 +0000 (18:48 +0000)]
Merge "(Bug 41658) Allow diffs across text based content."