Commit graph

27121 commits

Author SHA1 Message Date
jeroendedauw
1ccaff3ee8 Stylize
Change-Id: Ia9532f06db8331da1ea5ff9c9398073d7d084484
2012-10-01 12:36:15 +02:00
umherirrender
0d81130dd4 Do not register Special:JavaScriptTest, if disabled
It is better when the special page is not register,
instead of giving a hint, that this is disabled on the wiki.

See other special pages like Special:PopularPages or Special:ChangeEmail

Change-Id: I43fb118d61ddcb2536192f54ee888d55b2fbd49d
2012-10-01 06:33:34 +02:00
Tyler Anthony Romeo
af68ecea64 (bug 40541) Fixed minor code style problems.
Follow-up to I17ac68014840daa47bfd4768e978e9ff2edb00db.
Replaces some ==/!= with ===/!== and other code style
changes mentioned in Gerrit comments on previous patchset.

Change-Id: I50da16bc62241491ac5c4948e0d3059b21f113dc
2012-09-30 21:23:05 -04:00
Reedy
0220369630 Merge "(bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title" 2012-09-30 19:04:15 +00:00
Nikerabbit
c5f732bcbe Merge "(bug 40384) Move width/height from button to img" 2012-09-30 16:11:08 +00:00
Aaron Schulz
de0e9f09c5 Fixed mismatched profile calls in LoadBalancer.
Change-Id: I1ac81347b8af9b30dc03df94a76483a4ae4a6503
2012-09-29 11:52:48 -07:00
umherirrender
e6a6b33567 (bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title
Change-Id: I68e8c0bb23f185c0f996a8905f6d437db3080aa1
2012-09-29 17:19:40 +02:00
umherirrender
bd602d2083 Drop unused database field ss_admins
no longer updated since 1.5

Change-Id: Iebdce084d178b5003105b2d2b7dcc499c274ff56
2012-09-29 12:20:21 +02:00
Kaldari
ba3fa1aca5 Merge "Adding wildcard support to $wgCopyUploadsDomains" 2012-09-28 23:20:52 +00:00
Catrope
ab8f2c37d5 Merge "(bug 40541) Fixed $wgSecureLogin functionality." 2012-09-28 20:30:15 +00:00
Catrope
87f5596f5e Merge "Added protocol option to Linker and OutputPage::addReturnTo." 2012-09-28 20:25:11 +00:00
Catrope
a274321310 Merge "(bug 29898) Set cookie to force HTTPS from HTTP" 2012-09-28 17:34:26 +00:00
Reedy
bf4e932349 Updates for MW 1.21
Change-Id: I582c1bcc50d694705b560fea893d0b2984072c08
2012-09-28 16:19:19 +01:00
Tyler Anthony Romeo
60c596812b (bug 39674) Fixed loading User from session when hook aborts.
Rather than have separate calls to User::loadDefaults()
every time User::loadFromSession() fails, there is now just
one call in User::load() if loadFromSession() returns false.
This fixes the case where a UserLoadFromSession hook aborts
loading from session, leaving the User object uninitialized.

Change-Id: I8d1a114d7ec361b27b260791f742c473a1497f26
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
2012-09-28 06:12:31 +00:00
Kevin Israel
6529547f93 (bug 40384) Move width/height from button to img
The fix for bug 34768 (r112710, regarding the lack of width and height
attributes for the Vector skin's search button) failed to include the
corresponding changes to SkinTemplate.php.

Because BaseTemplate::makeSearchButton() only special cased the src and
alt attributes, the width and height incorrectly went on the button
element, causing HTML validation errors (and also having no effect).
This patch moves the width and height attributes to the img element
in a similar fashion to src and alt.

Change-Id: I3561fc79364ce43521823bad691c9b61f87ba375
2012-09-27 22:53:06 -04:00
Reedy
7476057925 Add $wgCopyUploadProxy to be used for copy uploads only.
Means we don't break stuff on the cluster such as search by setting $wgHTTPProxy

Change-Id: I094b2bfd097e7e5c1c45b6332357d959ed95ac99
2012-09-28 01:33:48 +01:00
Siebrand
51491c785b Merge "Link the credits in Special:Version in all languages" 2012-09-27 22:52:42 +00:00
Marius Hoch
d277a9ead0 Link the credits in Special:Version in all languages
Add the link to {{SERVER}}{{SCRIPTPATH}}/CREDITS in Special:Version
in the code and not in the interface message, which is
way more straightforward, makes the message  easier and
assures that the developers are credited no matter of the current
interface language.

The following languages need interface changes after this is merged:
He, Ko, Bcl, Jv (the fact that this list is so short once again
proves the point that the link isn't set in many languages). I'll
take care of those.

Change-Id: If12c4eb8453da40ede4b9768b2dacfaf838aa2ab
2012-09-28 00:17:32 +02:00
Siebrand
1247a9d9d6 Merge "Style fix" 2012-09-27 20:05:22 +00:00
jeroendedauw
dc8f3e6c78 Added a pile of missing brackets
Change-Id: Id7b331e1b12875736c8e7e93660e71630360a723
2012-09-27 21:46:22 +02:00
jeroendedauw
e1101bbb6f Style fix
Change-Id: I6b900924b07b44152fa943d10400fe151b4046c8
2012-09-27 21:36:14 +02:00
Tyler Anthony Romeo
565014a8cb (bug 40541) Fixed $wgSecureLogin functionality.
* Added parameter to login link so that wpStickHTTPS
  is set to true by default when the user is coming
  from HTTPS.
* Added redirect in Special:Userlogin so that when
  $wgSecureLogin is enabled it automatically redirects
  to HTTPS.
* Adjusted User::setCookies() to add a parameter for
  forcing secure/insecure cookies, and then added the
  appropriate argument to Special:Userlogin so that
  cookies are set appropriately.

Change-Id: I17ac68014840daa47bfd4768e978e9ff2edb00db
2012-09-27 14:34:11 -04:00
Tyler Anthony Romeo
0a1e291036 Added protocol option to Linker and OutputPage::addReturnTo.
Added new argument to the Linker options array to allow
the forcing of an HTTP or HTTPS protocol. In order to facilitate
this, a protocol argument was added to Title::getLinkURL.

Also, an options argument was added to OutputPage::addReturnTo
so that options can be passed to the linker and so that the
returnto URL can be forced to a certain protocol.

Change-Id: Ia9cc11e310ad6ef23c221bdba3a4834e7c5556e7
2012-09-27 13:47:42 -04:00
IAlex
0b7df10078 Merge "Fix typo in docs." 2012-09-27 07:33:58 +00:00
IAlex
51eb54bccd Merge "Use standard function name for constructor." 2012-09-27 07:32:48 +00:00
Siebrand Mazeland
e9cae10e71 Fix typo in docs.
Change-Id: I9390711340f2426aaf46762f048738ac3a3de16a
2012-09-26 22:28:22 -07:00
Timo Tijhof
4c21cf53d8 (bug 9237) SpecialBrokenRedirects.php: Exclude iw redirects
* Cleaned up code
* Difference:
  Added `(rd_interwiki IS NULL OR rd_interwiki = "")` condition.

Change-Id: Ifee9fdcdd3a327742b18cfcc2a235e1e24c062bf
2012-09-27 03:40:41 +02:00
csteipp
f8710f255c (bug 33471) compare detectProtocol to 'https'
Extra ':' was added to the comparison string in gerrit change I6adc7e3e

Change-Id: I3ff7274f6aa006b5cb9dcc3d2c44721f25a0fc8f
2012-09-26 17:20:15 -07:00
Krinkle
305d3acd9e Merge "Simplify getNewOffset()" 2012-09-26 23:12:41 +00:00
Demon
34c057a802 Merge "Add 2 new options to importImages.php" 2012-09-26 20:48:41 +00:00
Max Semenik
f000f14555 Add 2 new options to importImages.php
--timestamp overrides upload timestamp
--summary sets upload summary

Change-Id: I930c8b1ce55af0543a41f412ecf702715c82c6df
2012-09-27 00:16:17 +04:00
Reedy
abbaf76c9a Merge "Begin transactions explicitely in Job class." 2012-09-26 18:20:10 +00:00
Aaron Schulz
a268584093 Merge "Added doc note about getWikiId()." 2012-09-26 16:48:42 +00:00
Aaron Schulz
43b95bbe8b Added doc note about getWikiId().
Change-Id: I9c078baf84e0fead743e5315f698bd287ecf9f13
2012-09-26 09:45:21 -07:00
Reedy
ea73ea64ea Simplify getNewOffset()
Remove @ingroup Diff comment which seems to have come from the extension

Change-Id: I2a357bde2b4298315ef05a619a05b56b0ce4dca2
2012-09-26 17:05:47 +01:00
Daniel Kinzler
5f59846349 Begin transactions explicitely in Job class.
This reverts commit dfbf524d35 which
was "Removed unmatched commits in Job class".

The original change was reverted n the light of the recent discussion about the DBO_TRX flag
and the intended use and bahavior of begin and commit.

See http://www.gossamer-threads.com/lists/wiki/wikitech/300087 for Tim's explanation of DBO_TRX.

This change now implements a new, alternative solution to the original problem of unmatched
calls to commit:

The Job class originally relied on implicitely started transactions. Introducing
explicit calls to begin() avoids warnings while running tests, and
causes transaxctiosn to be used also in cli (maintenance) mode.

Change-Id: I6ecb8faad06449331a79b81860fe64624d3694d4
2012-09-26 13:19:00 +02:00
daniel
5bfd85cf26 Warn about all nested transactions when testing.
This change causes implicit commits caused by consecutive calls to
Database::begin() without intermediate calls to Database::commit() to
be more easily tracable. The changes introduced are:

* $this->doCommit( $fname ) is now called unconcitionally if there is
  an open transaction. Previously, it was not called if there were no
  write operations performed in that transaction.

* A warning about implicite commits (nested transactions) is now issued
  if write operations were performed OR ther DBO_TRX flag is NOT set. This
  causes any unmatched calls to begin() to trigger an error in CLI mode,
  notably also within unit tests.

* Implicit commits of non-write transactions in DBO_TRX mode can now be
  logged by enabling $wgDebugDBTRansactions.

Besides this, this change improves the documentation of the transaction
control functions.

The rationale is that implicite commits should be more easily tracable
in production and development.

Change-Id: I1e746322c36a7c53b545bfe78e252a13cce44ea1
2012-09-26 12:38:44 +02:00
Timo Tijhof
f85255bd3b (bug 40352) fixDoubleRedirects.php: Support interwiki redirects
While at it, prettified code a bit and added list to output.

Change-Id: I989b5742ad46a9dd8c928a4ff5f76c869924730e
2012-09-26 09:16:42 +02:00
Amir E. Aharoni
0ffe674912 (bug 35167) Allow <span dir="ltr|rtl"> in toc items
Added parser tests accordingly.

Change-Id: Ia77f24f53e77b0b9d6112218c93ea15fdefac5de
2012-09-26 06:50:46 +00:00
Daniel Friesen
3842f9a262 Preemptively add css3's image() to our css sanitizer.
- Adding this now even though no browser supports it so that when one does it doesn't become a way to bypass our url() filter.
- Including missing tests for all of our insecure input filters.
- Also make sure that vendor prefixed versions like -webkit-image() are caught because most browsers are probably going to go and implement a vendor prefixed version first.

Change-Id: If73aa98b8accdb7621b0e4ff0615b61d530fa547
2012-09-26 05:24:16 +00:00
mwalker
b5b55ec026 Fixing bug where end limit would not be calculated
In the pager object, if the query was constructed
such that the index was a fully qualified field then
the 'past the end' index reference would not get
computed.

This is because $mIndexField stores the FQ field name
but $mPastTheEndRow is indexed on the non FQ name.
Therefore a warning would be generated due to a non
existent array key.

Change-Id: I52e1cbc8f7dad07de1ba5ba3bdfa2d107dfb4d93
2012-09-26 05:04:36 +00:00
Siebrand Mazeland
04986cf60f Use standard function name for constructor.
Also remove a redundant constant check.

Change-Id: I55d929e6bc8f8a851bedf5eaa476601af4458e6e
2012-09-25 21:12:45 -07:00
Trevor Parscal
8016a0d162 Merge "mediawiki.action.edit.preview: New module replacing preview.js" 2012-09-25 18:49:23 +00:00
Aaron Schulz
d0b56ee255 Merge "(bug 40353) SpecialDoubleRedirect: Fix for interwiki redirects" 2012-09-25 17:35:47 +00:00
Kaldari
e3b95ca5eb Adding wildcard support to $wgCopyUploadsDomains
Change-Id: I06bff1c626d847e4e28dca0772a931f6d6925736
2012-09-24 17:24:16 -07:00
Catrope
fee3241e9b Merge "[FileBackend] Added FileBackend::getWikiID() function." 2012-09-24 22:45:00 +00:00
Aaron
dfb0d94c99 [FileBackend] Added FileBackend::getWikiID() function.
Change-Id: Idd9be6c72d494fad37ac62e274c1e115ff97cdec
2012-09-24 15:38:37 -07:00
Demon
6b3bdef1f7 Merge "[FileRepo] Throw an exception if a storage key is invalid." 2012-09-24 22:00:38 +00:00
Catrope
ac6029278b Merge "Limit bad transactions warnings to those involving possible writes." 2012-09-24 21:57:42 +00:00
Tim Starling
343cbf7463 Add an API log
During incident response, it was not possible to tell what API modules
were being requested and by whom, since the action parameter is often
posted. This change logs the API parameters whether they are posted or
sent in the query string.

I did try to get the API parameters from the module, but that turns out
to be difficult. Modules create submodules (generators, page sets) as
local variables, which are created in a procedural style and destroyed
before logging is done, so there is no easy way to query them for
parameter lists after execution completes.

In ApiOptionsTest, use a real ApiMain object like all the other API test
cases, rather than a mock object. Otherwise the test fails.

Change-Id: Idc786007fe61811d1874f29b5ce4762dd97b1847
2012-09-24 21:22:09 +00:00