daniel [Tue, 9 Oct 2012 12:23:42 +0000 (14:23 +0200)]
Fix merge artifact in Article::showCssOrJsPage.
Change-Id: I1e9608809b81d2c5feeb048ddee96d5324b62a81
Siebrand [Tue, 9 Oct 2012 11:05:26 +0000 (11:05 +0000)]
Merge "Silenice trx warnings from LoadBalancer."
daniel [Tue, 9 Oct 2012 10:26:47 +0000 (12:26 +0200)]
Silenice trx warnings from LoadBalancer.
This is a follow-up to Idbe4a903.
LoadBalancer::commitMasterChanges used to cause a warning if an implicite
transaction was in progress. This is now supressed.
Note that warnign when an automatic transaction is committed explicitely,
it does make sense to issue a warning. But that should not be done for summary
commits when closing a connection, etc.
Change-Id: Id68c3607f6b9d930c00422baa6658b0651f2e42e
IAlex [Tue, 9 Oct 2012 10:23:38 +0000 (10:23 +0000)]
Merge "Remove unused variables."
IAlex [Tue, 9 Oct 2012 10:19:53 +0000 (10:19 +0000)]
Merge "Replace deprecated call."
Siebrand Mazeland [Tue, 9 Oct 2012 09:29:48 +0000 (11:29 +0200)]
Remove unused variables.
Change-Id: I4b76cbbca22555eacb8ef4de58993b485f7cdd18
Siebrand Mazeland [Tue, 9 Oct 2012 09:29:09 +0000 (11:29 +0200)]
Replace deprecated call.
Change-Id: I71866194d72bca059e28b0bd74f4ecd5686743c4
Siebrand Mazeland [Sun, 7 Oct 2012 23:35:26 +0000 (01:35 +0200)]
Update docs for return and exception info
* Removed some inline tabs in the process.
* IDE fixed some incorrect leading spaces, too.
Change-Id: Ic9303eff6db4424ac3f1fa2816839692b43e6190
Siebrand [Tue, 9 Oct 2012 09:39:47 +0000 (09:39 +0000)]
Merge "Merge branch 'Wikidata' into master."
daniel [Tue, 9 Oct 2012 09:34:24 +0000 (11:34 +0200)]
Merge branch 'Wikidata' into master.
This introduces the ContentHandler facility into MediaWiki,
see docs/contenthandler.txt.
For convenient review, a squashed version is available at
https://gerrit.wikimedia.org/r/27191
The ContentHandler facility is a major building block of the Wikidata project.
It has been discussed repeatedly on wikitech-l.
Change-Id: I3804e2d5f6f59e6a39db80744bdf61bfe8c14f98
Siebrand [Tue, 9 Oct 2012 08:59:22 +0000 (08:59 +0000)]
Merge "Removed useless $title parameter to InfoAction::pageInfo()"
Siebrand [Tue, 9 Oct 2012 08:58:25 +0000 (08:58 +0000)]
Merge "Use parseAsBlock() instead of parse() to show the error message in OutputPage::showErrorPage()"
Alexandre Emsenhuber [Sun, 7 Oct 2012 13:37:00 +0000 (15:37 +0200)]
Removed useless $title parameter to InfoAction::pageInfo()
The $title variable is set to $this->getTitle() before its
first use in that method, so it's useless to pass it as parameter.
Also changed the call to exist() in InfoAction::onView() to use
the Page object instead of the Title object.
Change-Id: Ic07ee0ccccfd9cc3aabd497aebf7965136a2d3bd
umherirrender [Thu, 4 Oct 2012 16:17:46 +0000 (18:17 +0200)]
Avoid direct access to $wgGroupPermissions
Created a new method User::groupHasPermission and check also
$wgRevokePermissions for the given right
Change-Id: I41edb091fa35c8c68b6f95cc5fd208ea99418cdb
Siebrand [Tue, 9 Oct 2012 06:30:03 +0000 (06:30 +0000)]
Merge "Add version number to deprecated setting"
Siebrand [Tue, 9 Oct 2012 06:27:04 +0000 (06:27 +0000)]
Merge changes I9d2b148e,Iccf6ea81
* changes:
Clean and repair many phpunit tests (+ fix implied configuration)
Fix HtmlTest, XmlTest; Add setMwGlobals method to base TestCase.
umherirrender [Fri, 5 Oct 2012 19:30:46 +0000 (21:30 +0200)]
Add version number to deprecated setting
Fix one doc
Change-Id: I527639c3694d7b72d9f3bff62fb8b0b7eb6ee126
Timo Tijhof [Wed, 29 Aug 2012 12:31:10 +0000 (14:31 +0200)]
(bug 34876) Make jquery.makeCollapsible less slow.
Several optimisations:
* Re-using the same $collapsible jQuery object instead of
re-creation of $(this).
* Use .data instead of dom manipulation (className property).
* Use $.nodeName( HTMLElement, tag ) to check something is <a>,
instead of using creating a jQuery object and calling
"is.('a')", which goes through a lot of selector stuff.
- Fix bug where it says it does instantHide but actually still
triggers the event that causes initial animations.
Thanks to Lupo for most of these ideas, based on this patch:
* https://bugzilla.wikimedia.org/attachment.cgi?id=10200
Verified that these test cases all still work:
https://test.wikipedia.org/wiki/User:Krinkle/CollapsingTestpageMw
(copy wikitext to localhost)
Change-Id: Idb9ca00c03ec7d70903ed7fd79e427efa270ace4
Aaron Schulz [Tue, 9 Oct 2012 01:15:21 +0000 (01:15 +0000)]
Merge "Disable transaction warnings for automatic trx."
Aaron Schulz [Tue, 9 Oct 2012 01:09:29 +0000 (01:09 +0000)]
Merge "Deprecate $wgSharedDB"
Timo Tijhof [Mon, 8 Oct 2012 10:56:20 +0000 (12:56 +0200)]
Clean and repair many phpunit tests (+ fix implied configuration)
This commit depends on the introduction of
MediaWikiTestCase::setMwGlobals in change Iccf6ea81f4.
Various tests already set their globals, but forgot to restore
them afterwards, or forgot to call the parent setUp, tearDown...
Either way they won't have to anymore with setMwGlobals.
Consistent use of function characteristics:
* protected function setUp
* protected function tearDown
* public static function (provide..)
(Matching the function signature with PHPUnit/Framework/TestCase.php)
Replaces:
* public function (setUp|tearDown)\(
* protected function $1(
* \tfunction (setUp|tearDown)\(
* \tprotected function $1(
* \tfunction (data|provide)\(
* \tpublic static function $1\(
Also renamed a few "data#", "provider#" and "provides#" functions
to "provide#" for consistency. This also removes confusion where
the /media tests had a few private methods called dataFile(),
which were sometimes expected to be data providers.
Fixes:
TimestampTest often failed due to a previous test setting a
different language (it tests "1 hour ago" so need to make sure
it is set to English).
MWNamespaceTest became a lot cleaner now that it executes with
a known context. Though the now-redundant code that was removed
didn't work anyway because wgContentNamespaces isn't keyed by
namespace id, it had them was values...
FileBackendTest:
* Fixed: "PHP Fatal: Using $this when not in object context"
HttpTest
* Added comment about:
"PHP Fatal: Call to protected MWHttpRequest::__construct()"
(too much unrelated code to fix in this commit)
ExternalStoreTest
* Add an assertTrue as well, without it the test is useless
because regardless of whether wgExternalStores is true or false
it only uses it if it is an array.
Change-Id: I9d2b148e57bada64afeb7d5a99bec0e58f8e1561
Timo Tijhof [Mon, 8 Oct 2012 10:59:55 +0000 (12:59 +0200)]
Fix HtmlTest, XmlTest; Add setMwGlobals method to base TestCase.
The HTML and XML test now set the globals they depend on
(instead of relying on the default settings).
Tests for the "other" scenarios still exist, globals are
overridden inline. They are automatically restored after each
test## function by PHPUnit from MediaWikiTestCase::tearDown.
Also fixed 2 other problems with the test suite:
* HtmlTest::testDropDefaults forgot to pass
$message to the assertion from the provider ($case[3]).
* The data provider for HtmlTest::testDropDefaults was calling
Html::element directly (instead of calling it within the test)
which is problematic because data providers are expected to be
static. PHPUnit calls them outside the setUp/tearDown flow.
(also fixed the function to be public static, as PHPUnit
expects).
That last one was crucial to make the test still pass correctly.
Updated the expected strings to what they are with these
fixed non-leakage settings.
Took wgHtml5 without xmlform as default. And added tests
for variations where it made sense.
Change-Id: Iccf6ea81f4bc2639273ab2ad101c58788ee49d45
Niklas Laxström [Mon, 8 Oct 2012 20:51:46 +0000 (20:51 +0000)]
Add parameters to LanguageQqx-generated messages.
This avoids outputing bunch of unhelpful (parentheses) messages.
Change-Id: I55fab4f132f28be3fe7e4bc8f51d403b11d24284
Reedy [Mon, 8 Oct 2012 20:39:35 +0000 (20:39 +0000)]
Merge "Update version to 1.21."
Translation updater bot [Mon, 8 Oct 2012 20:12:39 +0000 (20:12 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ic82f456bab4bc20f5b808a3e915b113b2551da9a
Siebrand Mazeland [Mon, 8 Oct 2012 18:45:55 +0000 (20:45 +0200)]
Update version to 1.21.
Change-Id: I0305bb936104eadd60a2f43cdbf7cb676a55d3cb
Siebrand Mazeland [Mon, 8 Oct 2012 18:21:02 +0000 (20:21 +0200)]
Release notes tweaks.
Change-Id: I9e975c27b94657cd8769267ecdd262b2e9bc6b75
daniel [Mon, 8 Oct 2012 15:26:11 +0000 (17:26 +0200)]
Cleanup of Wikidata branch.
This cleans up several issues raised in comments to I3b2dad3a,
mostly style and merge artifacts.
Change-Id: I99f5e300a671db1353db151cd187ffd2e4478d03
Nikerabbit [Mon, 8 Oct 2012 13:57:07 +0000 (13:57 +0000)]
Merge "Phase out tests/jasmine; Update mediawiki i18n tests"
IAlex [Mon, 8 Oct 2012 12:58:33 +0000 (12:58 +0000)]
Merge "Fix typo in comment."
Siebrand Mazeland [Mon, 8 Oct 2012 12:49:11 +0000 (14:49 +0200)]
Fix typo in comment.
Change-Id: Ib88d3023aaf8b07363c0a2f00adb660732a849c1
Reedy [Mon, 8 Oct 2012 12:30:54 +0000 (12:30 +0000)]
Merge "Fix behavior of Hooks class."
daniel [Mon, 8 Oct 2012 12:13:59 +0000 (14:13 +0200)]
Fix usage of deprecated ArticleSaveComplete hook in core
Change-Id: Ic01fd95d50a909470d6f0ffd93c972322789d49a
daniel [Mon, 8 Oct 2012 11:58:54 +0000 (13:58 +0200)]
merge latest master into Wikidata branch
Change-Id: Id4e0f40c03679c13d8934a6add99b5cd86d0437d
daniel [Fri, 5 Oct 2012 08:19:42 +0000 (10:19 +0200)]
Disable transaction warnings for automatic trx.
This tracks which transaction was opened automatically because of the
DBO_TRX flag, and then supresses any warnings about committing these
transactions implicitely, even if write operations were performed by
that transaction. To get warnings about implicitely committed writes
from automatic transactions, enable $wgDebugDBTransactions.
This change is a follow-up to I1e746322 and the older I3f1dd5fd, and
should be considered an alternative to I3eacc5a9. The new warning
behavior is:
* when beginning a transaction, warn if there is a transaction pending
that has also been started explicitely by calling begin().
* when beginning a transaction and $wgDebugDBTransactions is on, log
any implicit commit of an automatic transaction if write operations
where performed within that transaction.
The idea is to provide warnings about nested explicite transactions
while staying quiet about implicite commits to automatic transactions.
Change-Id: Idbe4a9034b13413e351f432408d358a704f6b77d
daniel [Fri, 5 Oct 2012 16:28:21 +0000 (18:28 +0200)]
Fix behavior of Hooks class.
Until now, Hooks::run() would execute hooks registered via $wgHooks, but
Hooks:isRegistered() would not consider them and Hooks::getHandlers() would
not return them. That is inconsistent and misleading. This change aims to
make the methods of the Hooks class behave consistently, and allows them
to be used as a generic way of interacting with hooks.
Change-Id: I39bd5de2bc8ccbe8df729446363960af9d29b0be
Timo Tijhof [Wed, 12 Sep 2012 07:57:31 +0000 (09:57 +0200)]
Phase out tests/jasmine; Update mediawiki i18n tests
Updated script for generating mediawiki.jqueryMsg sample
data to be generic instead of Jasmine specific
Removed mediawiki.jqueryMsg.spec.js
* The bulk of the tests were already in QUnit (did that a
while ago)
* The little $.each loop over the sample data is now in
QUnit as well.
* Made it so that it doesn't need a hardcoded copy of
languageClasses but instead pulls it from load.php
on-demand and then restores mw.language later on.
The mediawiki.jqueryMsg.test module now has several failures
which is annoying but should not block the merge for now
because they were failing under Jasmine as well, this is a
known bug in jqueryMsg, a few cases don't work in js yet.
To be investigated (12/66 fail currently).
Change-Id: I243d055d6f5129fd9fd760943d05c7cd210d84bf
daniel [Mon, 8 Oct 2012 11:11:58 +0000 (11:11 +0000)]
Merge "fix merge of Iec98e472" into Wikidata
daniel [Mon, 8 Oct 2012 11:11:33 +0000 (11:11 +0000)]
Merge "Prevent page moved to different content model." into Wikidata
daniel [Mon, 8 Oct 2012 11:11:16 +0000 (11:11 +0000)]
Merge "Use ContentHandler as a factory for recirects." into Wikidata
daniel [Mon, 8 Oct 2012 11:10:41 +0000 (11:10 +0000)]
Merge "Make runLegacyHooks work around bug in Hooks." into Wikidata
IAlex [Mon, 8 Oct 2012 06:54:39 +0000 (06:54 +0000)]
Merge "Remove some unused local variables."
IAlex [Mon, 8 Oct 2012 04:50:44 +0000 (04:50 +0000)]
Merge "Fix issue with link in history line for revs hidden from sysops"
Tim Starling [Mon, 8 Oct 2012 04:47:24 +0000 (15:47 +1100)]
Deprecate $wgSharedDB
Deprecate $wgSharedDB in response to it accidentally being used in
Wikidata. It was always an ugly hack.
Change-Id: I68f3bfe7afc49a49cd310b66dc03cf52507d3e58
Siebrand Mazeland [Mon, 8 Oct 2012 00:05:49 +0000 (02:05 +0200)]
Remove some unused local variables.
Also add a FIXME for a weird case.
Change-Id: I1f7f8a522fc49be85051a467455796c3f564584b
Siebrand Mazeland [Sun, 7 Oct 2012 23:57:15 +0000 (01:57 +0200)]
Fix issue with link in history line for revs hidden from sysops
Looks like this link should have been called $del instead of $cdel.
Needs some verification. Blame came up with Aaron's change in
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/58351. Looks like it may
have been a typo.
Change-Id: I36607e1d1365ddfb0383d68702291509b94a931a
Derk-Jan Hartman [Sun, 7 Oct 2012 23:54:44 +0000 (01:54 +0200)]
Fix an issue with the data-sort-type retrieval.
The treatment of attributes with embedded dashes was changed in jQuery
1.6 to conform to the W3C HTML5 specification. Hyphenated names become
camel-cased.
Change-Id: I4ac2ebdc1ba8350b9696e516f62ba803fa8fb46b
Reedy [Sun, 7 Oct 2012 21:01:24 +0000 (21:01 +0000)]
Merge "(bug 40820) Revert my changes to includes/actions/CreditsAction.php"
Translation updater bot [Sun, 7 Oct 2012 20:22:26 +0000 (20:22 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I1b2cf70c578511ef44a2381e506ee168cc57c7ec
umherirrender [Sun, 7 Oct 2012 17:05:34 +0000 (19:05 +0200)]
Simplify code for usertools in RollbackAction
Change-Id: Ib550084ca60f54a0c1b1a3d6479fba75bc4f22bf
Alex Monk [Sat, 6 Oct 2012 15:53:56 +0000 (16:53 +0100)]
(bug 40820) Revert my changes to includes/actions/CreditsAction.php
Also don't show contributors on action=info
Change-Id: I48b70b3d6b94e295aca23d506c7cce9185df4bcc
jan [Fri, 5 Oct 2012 22:28:39 +0000 (00:28 +0200)]
Add warnings to install.php for files-options
Add warnings to install.php if dbpass and dbpassfile or pass and passfile is provided.
Change-Id: Ibf73ddd80eebbd9886e18cee8eaf32b7127b660f
jan [Fri, 5 Oct 2012 21:35:37 +0000 (23:35 +0200)]
Add passfile option to install.php
Add passfile option to install.php so a file with the password can be used.
Change-Id: Ibf45933971374c90726359cff16617cb37d002fc
IAlex [Sun, 7 Oct 2012 06:07:39 +0000 (06:07 +0000)]
Merge "pass user object for delete/undelete/filerevert in api/gui"
IAlex [Sun, 7 Oct 2012 05:59:28 +0000 (05:59 +0000)]
Merge "Remove obsolete comment."
IAlex [Sun, 7 Oct 2012 05:56:55 +0000 (05:56 +0000)]
Merge "Add userToolLinks to action=info"
Aaron Schulz [Sun, 7 Oct 2012 03:07:57 +0000 (20:07 -0700)]
[FileBackend] Removed pointless container process cache invalidation for Swift.
Change-Id: I0c0dab602474d27ac744be1ebfb5605022c97be7
umherirrender [Thu, 4 Oct 2012 19:49:16 +0000 (21:49 +0200)]
Add userToolLinks to action=info
Useful link to talk page for the user
Using Linker::revUserTools to have the striked "username removed"
instead of nothing.
Change-Id: I234cb2a483139407087b18ad47ac5b362b8ee5e9
Siebrand [Sat, 6 Oct 2012 20:08:20 +0000 (20:08 +0000)]
Merge "(bug 23222) The "login again" link on Special:Userlogout now has returnto parameter"
Siebrand [Sat, 6 Oct 2012 19:52:22 +0000 (19:52 +0000)]
Merge "Fix behaviour of namespaceSelector to match the documentation"
Siebrand [Sat, 6 Oct 2012 19:44:21 +0000 (19:44 +0000)]
Merge "(bug 38559) Add hook to info action to allow extensions to add extra information to a pages info"
Tim Landscheidt [Sat, 6 Oct 2012 18:45:12 +0000 (18:45 +0000)]
Remove obsolete comment.
There is no class SearchDbTest.
Change-Id: I6054de571e867b07453785f5598ba410449b57e2
Alexandre Emsenhuber [Sat, 6 Oct 2012 15:28:09 +0000 (17:28 +0200)]
Use parseAsBlock() instead of parse() to show the error message in OutputPage::showErrorPage()
When a message name is passed, addWikiMsgArray() is used, so it adds a <p> arround the
result. Do the same when a Message object is passed to that method.
Change-Id: Ie97ad9a921ae3fc6d327531b0ace64b6a08e1fa2
Alexandre Emsenhuber [Sat, 6 Oct 2012 12:50:28 +0000 (14:50 +0200)]
(bug 23222) The "login again" link on Special:Userlogout now has returnto parameter
It is much more user-firendly for user that logout and then click the "login again"
to have the "Return to" links pointing to the page they were before logging out.
Based on patch by Ilmari Karonen.
Change-Id: Ia63d7743b9a02ee81eb76cdd34da375a66589059
umherirrender [Sat, 6 Oct 2012 09:54:50 +0000 (11:54 +0200)]
pass user object for delete/undelete/filerevert in api/gui
Change-Id: Idd214fa1ad9d05ebb2a79225256fb344a1085e9d
Catrope [Tue, 2 Oct 2012 03:21:31 +0000 (20:21 -0700)]
(bug 40660) Don't mangle in on-wiki JS.
Fixed by no longer using MessageCache::get() in
ResourceLoaderWikiModule. The only reason I see for using it is to make
default values for .js pages in the MediaWiki: namespace work (by
specifying them in an .i18n.php file), but that's evil and no one was
doing that other than putting in descriptive comments like
/* Site scripts go here */. That, and the previous implementation of
MediaWiki namespace JS that RL replaced did it, so I kept it at the
time, assuming it must have been needed for some reason.
Change-Id: Ica7f35fefcc200f0b3daf1d06d98a0b8ea878f3a
umherirrender [Sat, 6 Oct 2012 08:21:24 +0000 (10:21 +0200)]
Remove autoloader for deprecated Database class
Follow up: I8e7549e6
Change-Id: Id71be89434d77558b48456d111c4a03faefc5e74
Catrope [Fri, 5 Oct 2012 22:45:54 +0000 (22:45 +0000)]
Merge "[FileBackend] Tweaked FileBackendMultiWrite behavior to fix test leakage."
Reedy [Fri, 5 Oct 2012 22:23:05 +0000 (22:23 +0000)]
Merge "Remove deprecated 1.7 SpecialPage::addPage"
Reedy [Fri, 5 Oct 2012 22:22:42 +0000 (22:22 +0000)]
Merge "Remove deprecated 1.16 Legacy support: Database == DatabaseMysql"
Aaron Schulz [Fri, 5 Oct 2012 22:07:23 +0000 (15:07 -0700)]
[FileBackend] Tweaked FileBackendMultiWrite behavior to fix test leakage.
Change-Id: I0a967780b64d1883cfeb1a7a183bbb82dc1ae432
umherirrender [Fri, 5 Oct 2012 20:45:41 +0000 (22:45 +0200)]
Remove deprecated 1.7 SpecialPage::addPage
Change-Id: I6e68f02d1abac935bb6e1baed2d83d2f0ca76d36
umherirrender [Fri, 5 Oct 2012 20:41:22 +0000 (22:41 +0200)]
Remove deprecated 1.16 wfLoadExtensionMessages
Change-Id: I9b9ecc9818d17c98748f39177c28554f8c485de5
umherirrender [Fri, 5 Oct 2012 20:39:31 +0000 (22:39 +0200)]
Remove deprecated 1.16 Legacy support: Database == DatabaseMysql
Change-Id: I8e7549e67aac072139923b7c4ea607563facf2e9
Reedy [Fri, 5 Oct 2012 20:18:24 +0000 (20:18 +0000)]
Merge "Added missing entries in AutoLoader."
Alexandre Emsenhuber [Fri, 5 Oct 2012 20:12:03 +0000 (22:12 +0200)]
Added missing entries in AutoLoader.
Change-Id: Iaed7664e155f3a0afd87398d85a66eda081dd5e4
MaxSem [Fri, 5 Oct 2012 19:15:44 +0000 (19:15 +0000)]
Merge "Don't display multiple language links to the same language"
Reedy [Fri, 5 Oct 2012 19:14:54 +0000 (19:14 +0000)]
Merge "Remove deprecated $wgAllowRealName"
Tim Starling [Wed, 26 Sep 2012 07:42:17 +0000 (17:42 +1000)]
Don't display multiple language links to the same language
(bug 24502) Resolve the various issues with this accidental feature
by removing it. I think it could be done properly, along the lines of
my comment #5, but I don't think just changing the DB schema to make
langlinks non-unique is a good direction to take. A comment on
I4e1e08a3 from Daniel Kinzler indicates that duplicate language links
won't be possible with Wikidata anyway, so there's not much value in
I4e1e08a3 for WMF wikis.
Change-Id: Iba5f3f29e20f5119d4414b1e87ce5eee674701a8
Catrope [Fri, 5 Oct 2012 18:58:54 +0000 (18:58 +0000)]
Merge "Bug 40756 - API: Call to a member function isGood() on a non-object in ApiDelete.php"
umherirrender [Fri, 5 Oct 2012 18:53:22 +0000 (20:53 +0200)]
Remove deprecated $wgAllowRealName
Deprecated since 1.16, which is out of lifecycle since August 2011
Change-Id: Ie48a4116eab9d07bc435ea9ce784762313b757cb
IAlex [Fri, 5 Oct 2012 18:34:47 +0000 (18:34 +0000)]
Merge "Add @since tags too Hooks"
Reedy [Fri, 5 Oct 2012 18:29:26 +0000 (19:29 +0100)]
Add @since tags too Hooks
Update some method documentation
Change-Id: If4913aab7d0f8c14d49ca8320e31b1b354145c83
umherirrender [Fri, 5 Oct 2012 18:26:00 +0000 (20:26 +0200)]
Add missing version number to wfDeprecated calls
Change-Id: I8b9efaf5eafc6cfecb34d401574ce978899d3990
Brion VIBBER [Fri, 5 Oct 2012 17:39:26 +0000 (17:39 +0000)]
Merge "CologneBlue rewrite: rework otherLanguages(), CSS: serif font"
Brion VIBBER [Fri, 5 Oct 2012 17:37:02 +0000 (17:37 +0000)]
Merge "SkinTemplate: extract formatLanguageName() from outputPage()"
daniel [Fri, 5 Oct 2012 17:11:50 +0000 (19:11 +0200)]
Make runLegacyHooks work around bug in Hooks.
Hooks::isRegistered() doesn't consider hooks in $wgHooks.
Until that is fixed (see I39bd5de2), we need to check that explicitely.
Change-Id: I211c0c8bd0cd618151e56a11171ec8feef328d16
daniel [Fri, 5 Oct 2012 17:05:21 +0000 (19:05 +0200)]
For now, use the parser cache only for wikitext.
Caching could be enabled for other content types, but for the moment,
JS and CSS pages rely on the fact that the ShowRawCssJs hooks is called
for every view - which is bypassed when the parser cache is used.
Change-Id: Icf603b9f2a685d9e705db3459fcd12dae1fdba57
Marius Hoch [Fri, 5 Oct 2012 16:52:57 +0000 (18:52 +0200)]
Clear the cached edit count within User::clearInstanceCache
(After a question in r26457): Let User::clearInstanceCache
clear out the cached edit count as well, as a user session
can be open for a long time.
Change-Id: I4444f352e3b5df7b24f37668a5f1fbf9d64d6978
MatmaRex [Tue, 2 Oct 2012 19:47:07 +0000 (21:47 +0200)]
CologneBlue rewrite: rework otherLanguages(), CSS: serif font
We have to override SkinTemplate->formatLanguageName() in SkinCologneBlue
not to capitalize the language names, as they are not actually used in the
sidebar and look better this way.
This change revealed that CologneBlue does not set the base font for the
page, causing text marked as being in a different language (e.g., language
links) to be displayed in a different fond in some browsers. Adding
"font-family: serif" to body fixed the issue.
Change-Id: I8b56ccb6f9a2ba47613f135754b5a133a6870412
MatmaRex [Fri, 5 Oct 2012 16:00:49 +0000 (18:00 +0200)]
SkinTemplate: extract formatLanguageName() from outputPage()
This is to allow skins to override it; for example, CologneBlue needs the
names *not* to be uppercased, as they're not actually displayed in the
sidebar.
Change-Id: I91d505159c9e9e468182ebbff6002e5238e34f90
IAlex [Fri, 5 Oct 2012 15:38:54 +0000 (15:38 +0000)]
Merge "Replace remaining Array occurences with array"
IAlex [Fri, 5 Oct 2012 15:36:35 +0000 (15:36 +0000)]
Merge "Pass user object to some Revision::getText/Title::userCan calls"
daniel [Fri, 5 Oct 2012 14:50:32 +0000 (16:50 +0200)]
Use ContentHandler as a factory for recirects.
Redirects should not be constructed as wikitext, since other content models
may use other mechanisms to represent redirects.
Change-Id: Id85c3b3ada1924628e4e51757573d233e998f920
madman [Fri, 5 Oct 2012 03:45:45 +0000 (03:45 +0000)]
(bug 38559) Add hook to info action to allow extensions to add extra
information to a pages info
* Added new function, pageInfo, to return page information in easily
manipulated format.
* Added call to wfRunHooks.
* Moved credits to follow the footer (this is a change for my
aesthetics that may be reverted, but it also allows admins to more
easily add a horizontal break or some such in pageinfo-footer).
* All messages are escaped.
Have tested extensively, all information is rendered exactly as it
was before as far as I can see.
Change-Id: I702f2f13d3b7af26d89c4fd9002d3161dc7905d2
umherirrender [Fri, 5 Oct 2012 14:25:01 +0000 (16:25 +0200)]
Pass user object to some Revision::getText/Title::userCan calls
Also passed some $wgUser direct (when already there), so it is seen by
someone, that the user should be passed to that method.
Change-Id: Id4d5504a05ea34d80d59262ad3aef28f09c807a6
jeroendedauw [Fri, 5 Oct 2012 13:54:58 +0000 (15:54 +0200)]
Fix behaviour of namespaceSelector to match the documentation
Change-Id: I3d1bb232905095ae2d5177adc225025178d5f5a3
jeroendedauw [Fri, 5 Oct 2012 14:11:18 +0000 (16:11 +0200)]
Replace remaining Array occurences with array
Change-Id: Id7c2fdd6814a8239acbe050d857b56350e691a49
daniel [Fri, 5 Oct 2012 14:08:07 +0000 (16:08 +0200)]
Prevent page moved to different content model.
Pages should never be moved in a way that would change their content model.
Without this explicite check, that might happen when $wgContentHandlerUseDB
is disabled.
Change-Id: Id1a101f56bee6f13a7259d34019c587e75a4c182
jeroendedauw [Fri, 5 Oct 2012 13:55:52 +0000 (15:55 +0200)]
Change Array to array
Change-Id: I22fd8b2aad037a12546d7c5f5167add1eec96c30