mediawiki.git
9 years agoUpdate release notes and incremented version1.18.5
csteipp [Fri, 31 Aug 2012 14:22:13 +0000 (31 07:22 -0700)]
Update release notes and incremented version

Change-Id: I983b436b58fd753e3d3bb582a04492df1a9fe2df

9 years ago(bug 39700) Fix for html injection
csteipp [Fri, 31 Aug 2012 13:58:05 +0000 (31 06:58 -0700)]
(bug 39700) Fix for html injection

Change-Id: Ie24201726a7adafecff00321e688a9e406707dce

9 years ago(bug 35839) Hidden block text leaking to admins
csteipp [Fri, 31 Aug 2012 13:56:31 +0000 (31 06:56 -0700)]
(bug 35839) Hidden block text leaking to admins

Change-Id: I729bd256054e78aa3fe15f08a21090e8cd7c9d3e

9 years ago(bug 39184) LDAP password leakage
csteipp [Fri, 31 Aug 2012 03:38:05 +0000 (30 20:38 -0700)]
(bug 39184) LDAP password leakage

Change-Id: Ie41bed7ecf5390f8815128c227bae371880a6058

9 years ago(bug 39180) Set x-frame-options='DENY' for api
csteipp [Fri, 17 Aug 2012 19:20:47 +0000 (17 12:20 -0700)]
(bug 39180) Set x-frame-options='DENY' for api

By default, set the x-frame-options header for api result pages
to 'DENY'. This is to prevent an attacker from iframing an api
page that includes tokens and stealing them from a user, for example
with a fake captcha prompt.

The global $wgApiFrameOptions is used for the value, or can be set
to false to disable setting the header.

Change-Id: I498f874d7f6c180ec4f3abfc81f773c0fa0f421d

9 years ago(bug 37587) Enforce language codes to be html safe
Niklas Laxström [Thu, 28 Jun 2012 14:52:56 +0000 (28 14:52 +0000)]
(bug 37587) Enforce language codes to be html safe

Fixes bug 37587 and many other issues which
might or might not have been reported yet.

Change-Id: I612b90931a0261990bcd294fdb12cfba930c8c2f

9 years ago(bug 38333) Check global blocks on account create
csteipp [Fri, 31 Aug 2012 13:54:37 +0000 (31 06:54 -0700)]
(bug 38333) Check global blocks on account create

Change-Id: I06a44a5b93e24ef2f9e4f17b8a3b2e2872bbe74e

10 years agoFix mixed script locale. Remove Hant.
Siebrand Mazeland [Tue, 3 Jul 2012 08:52:17 +0000 (3 10:52 +0200)]
Fix mixed script locale. Remove Hant.

Change-Id: I6900532d955b29bef8bbb7b9f31629d705899187

10 years ago(bug 36938) Correctly escape uselang attribute to prevent xss1.18.4
csteipp [Fri, 1 Jun 2012 16:45:38 +0000 (1 09:45 -0700)]
(bug 36938) Correctly escape uselang attribute to prevent xss

Fixes xss in uselang parameter by quoting attribute with double quotes
and adding htmlspecialchars escaping.

Change-Id: I009c40f869d6c0d82345c417839fc72210d2dbfd

10 years agoBump $wgVersion and add release-notes for 1.18.4
Reedy [Tue, 12 Jun 2012 16:43:59 +0000 (12 17:43 +0100)]
Bump $wgVersion and add release-notes for 1.18.4

Change-Id: I587f70957e93d0947eb97d97cf1a25da40a6b8ef

10 years ago(bug 29296) Expanded Blacklist for SVG Files
csteipp [Tue, 1 May 2012 17:29:11 +0000 (1 10:29 -0700)]
(bug 29296) Expanded Blacklist for SVG Files

Expanded detection of scripts inside SVG Files. Catches known
hostile files with minimal false-positives.

Disallows SVG Files that include remote resources, to protect
reader's privacy.

Change-Id: I5ba75ad621cdb0355351c8a9a0f1dbea552c258f

10 years agoBump 1.18.31.18.3
Reedy [Wed, 25 Apr 2012 18:16:39 +0000 (25 19:16 +0100)]
Bump 1.18.3

Add a few bits to the RELEASE-NOTES

Change-Id: I8808d26253dd39cc104c9d98cc60f5ee6da358d6

10 years ago(bug 35961) Hash comparison should always be strict.
Platonides [Fri, 13 Apr 2012 20:37:33 +0000 (13 22:37 +0200)]
(bug 35961) Hash comparison should always be strict.

If your salted password end up being completely numeric when
represented in hexadecimal (less than 1 password per 10 millions),
it is also possible to login by providing another password that only
matches the first 9 bytes (instead of the full 16 ones) if it turns out
to also be completely numeric with your assigned salt (which is completely unknown).
The odds of finding an equivalent password with such characteristics, over a double md5
with an unknown salt, are really low. Even if the attacker broke into the servers and
robbed the salts, making use of this property would require a preimage attack of a partial
md5 (2^18) with the output of another md5 hash, for which a full preimage would still be
needed. Breaking the hashes using conventional attacks would be easier, so this is not
a critical update.

Change-Id: I8d1153fb91ca6507bd1df91e9953561f74f12ef6

10 years agoFix gettoken loophole from https://gerrit.wikimedia.org/r/#change,4220
Szymon Świerkosz [Sun, 15 Apr 2012 17:40:20 +0000 (15 18:40 +0100)]
Fix gettoken loophole from https://gerrit.wikimedia.org/r/#change,4220

Reported and patch by Szymon Świerkosz/Beau

Change-Id: I3b5a001ad60e7e637b351331794cb275a7cf021a

10 years agotests: mark tests requiring a database connection
Antoine Musso [Wed, 4 Apr 2012 20:16:54 +0000 (4 22:16 +0200)]
tests: mark tests requiring a database connection

This is to unbreak `make databaseless`.

Change-Id: I84e25040c3a9f54a88603e36e60592172bdd9f5d

10 years agoBug 35671 - PHP Notice: Undefined index: gettoken in includes/api/ApiMain.php on...
Reedy [Tue, 3 Apr 2012 18:07:19 +0000 (3 19:07 +0100)]
Bug 35671 - PHP Notice: Undefined index: gettoken in includes/api/ApiMain.php on line 598

Change-Id: I220dfcd964ceb4254b310140b916a7c63a3044ef

10 years agoCopy .gitignore files from master
Alexandre Emsenhuber [Sat, 31 Mar 2012 19:38:01 +0000 (31 21:38 +0200)]
Copy .gitignore files from master

Change-Id: I3651790a782530a8ba20b840ae07e2d0da6f73d2

10 years ago* (bug 35567) The whole password reminder e-mail is now sent in the same language
Alexandre Emsenhuber [Fri, 30 Mar 2012 17:06:42 +0000 (30 19:06 +0200)]
* (bug 35567) The whole password reminder e-mail is now sent in the same language

Change-Id: I2e2540a51c676979ab0a7deb13bed55c0fe4934e

10 years agoMerge "Fix broken email confirmation expiration caused by MWCryptRand changes." into...
Tim Starling [Tue, 27 Mar 2012 05:13:07 +0000 (27 05:13 +0000)]
Merge "Fix broken email confirmation expiration caused by MWCryptRand changes." into REL1_18

10 years agoFix RELEASE-NOTES: add missing heading about 1.18.1 and fix the level of some others
Alexandre Emsenhuber [Mon, 26 Mar 2012 21:12:09 +0000 (26 23:12 +0200)]
Fix RELEASE-NOTES: add missing heading about 1.18.1 and fix the level of some others

Change-Id: I86c40db9fe2e4f57090fcc34547a87d7c4a0d532

10 years agoMerge "* (bug 35446) Using "{{nse:}}" with an invalid namespace name no longer throws...
Aaron Schulz [Mon, 26 Mar 2012 20:48:29 +0000 (26 20:48 +0000)]
Merge "* (bug 35446) Using "{{nse:}}" with an invalid namespace name no longer throws a PHP warning" into REL1_18

10 years ago* (bug 35446) Using "{{nse:}}" with an invalid namespace name no longer throws a...
Alexandre Emsenhuber [Mon, 26 Mar 2012 18:26:32 +0000 (26 20:26 +0200)]
* (bug 35446) Using "{{nse:}}" with an invalid namespace name no longer throws a PHP warning

Change-Id: I3b428aba860494e40fa61593a69c514aafc0f7e1

10 years ago.gitreview for REL1_18 branch
Antoine Musso [Mon, 26 Mar 2012 16:02:09 +0000 (26 18:02 +0200)]
.gitreview for REL1_18 branch

Change-Id: I753bd88a5e76f901c4fa4315bf3ed664be4d4512

10 years agoFix broken email confirmation expiration caused by MWCryptRand changes.
Daniel Friesen [Mon, 26 Mar 2012 03:44:57 +0000 (25 20:44 -0700)]
Fix broken email confirmation expiration caused by MWCryptRand changes.

Change-Id: I68ceef1afdd4a332255911494e1940db66aff4b9

10 years agoSwap $bytes .= $iv; for $buffer .= $iv;
Reedy [Fri, 23 Mar 2012 00:45:17 +0000 (23 00:45 +0000)]
Swap $bytes .= $iv; for $buffer .= $iv;

Add a few bits of documentation

Change-Id: I0997d6eaaa37f312633db4556752cb38d8b4a3b0

10 years ago* (bug 34212) ApiBlock/ApiUnblock allow action to take place without a token paramete... 1.18.2
Reedy [Thu, 22 Mar 2012 21:34:00 +0000 (22 21:34 +0000)]
* (bug 34212) ApiBlock/ApiUnblock allow action to take place without a token parameter present

* (bug 35317) CSRF in Special:Upload
Revert r56793, which removed the CSRF check for Special:Upload for normal file
uploads. Cross-site posting of file uploads without user interaction has been
possible since at least as early as Chrome 8 (late 2010) and Firefox 6 (mid
2011).

Commonist has used api.php since version 0.4.0 (April 2010), and the API
already requires an edit token, so Commonist 0.4.0+ is not affected by this
change.

* (bug 34907) Fix for CSRF vulnerability due to mw.user.tokens. Patch by Roan
Kattouw and Tim Starling.
* Filter out private modules early in ResourceLoader::makeResponse() and just
pretend they weren't specified. This means these modules cannot be loaded
through load.php . This filtering must not happen in makeModuleResponse(),
because that would break inlining.
* Force inlining of private modules in OutputPage::makeResourceLoaderLink(),
disregarding $wgResourceLoaderInlinePrivateModules
* Remove $wgResourceLoaderInlinePrivateModules
* Remove special treatment of private modules ($private) in
ResourceLoader::makeResponse() and sendResponseHeaders(), because we're not
allowing private modules to be loaded through here any more
* Remove identity checks in ResourceLoaderUserOptionsModule and
ResourceLoaderUserCSSPrefsModule, they didn't make a lot of sense before but
they're certainly useless now.
* Factored out error comment construction in ResourceLoader.php and stripped
comment terminations from exception messages. I didn't find an XSS
vulnerability but it looked scary.

Change-Id: I0e632722a0d9f4fc6d6bb355a986f498017c815d

10 years agoMFT r114354: MWCryptRand $method parameter removal
Tim Starling [Wed, 21 Mar 2012 10:43:22 +0000 (21 10:43 +0000)]
MFT r114354: MWCryptRand $method parameter removal

10 years agoBackported the bug 22555 part of r114232 and cleaned up RELEASE-NOTES-1.18
Tim Starling [Wed, 21 Mar 2012 00:31:52 +0000 (21 00:31 +0000)]
Backported the bug 22555 part of r114232 and cleaned up RELEASE-NOTES-1.18

10 years agoBackport r114272, Reedy's fix for r114233 to REL1_17, REL1_18, and REL1_19.
Daniel Friesen [Tue, 20 Mar 2012 17:22:32 +0000 (20 17:22 +0000)]
Backport r114272, Reedy's fix for r114233 to REL1_17, REL1_18, and REL1_19.

10 years agoBackport CryptRand from r110825 and r114233 to REL1_17, REL1_18, and REL1_19 so all...
Daniel Friesen [Tue, 20 Mar 2012 09:39:33 +0000 (20 09:39 +0000)]
Backport CryptRand from r110825 and r114233 to REL1_17, REL1_18, and REL1_19 so all our supported versions of MediaWiki support proper cryptographic random sources for our tokens.

10 years agoReplace UploadFromStash/UploadStash with copy from trunk at r105822
Sam Reed [Fri, 9 Mar 2012 16:25:15 +0000 (9 16:25 +0000)]
Replace UploadFromStash/UploadStash with copy from trunk at r105822

Bug 35032 - UploadFromStash is broken in 1.18.1

10 years agoLocalisation updates from translatewiki.net
Siebrand Mazeland [Fri, 2 Mar 2012 22:09:49 +0000 (2 22:09 +0000)]
Localisation updates from translatewiki.net
* Backport compatible translations to REL1_17.
* Backport compatible translations to REL1_18.
* Backport compatible translations to REL1_19.

10 years agoLocalisation updates. Backport compatible message updates and comments to REL1_18...
Siebrand Mazeland [Fri, 2 Mar 2012 20:11:24 +0000 (2 20:11 +0000)]
Localisation updates. Backport compatible message updates and comments to REL1_18 and REL1_19.

10 years agoMFT r112502
Jure Kajzer [Mon, 27 Feb 2012 19:05:02 +0000 (27 19:05 +0000)]
MFT r112502

10 years ago* (bug 34246) Display MediaWiki:Whatlinkshere-summary again in Special:Whatlinkshere
Alexandre Emsenhuber [Sat, 25 Feb 2012 15:59:12 +0000 (25 15:59 +0000)]
* (bug 34246) Display MediaWiki:Whatlinkshere-summary again in Special:Whatlinkshere

10 years ago* (bug 34528) Don't parse section name in edit section tooltips
Alexandre Emsenhuber [Sat, 25 Feb 2012 15:23:45 +0000 (25 15:23 +0000)]
* (bug 34528) Don't parse section name in edit section tooltips

10 years agoNote about fixing mail sent to exchange server
Antoine Musso [Wed, 15 Feb 2012 14:26:23 +0000 (15 14:26 +0000)]
Note about fixing mail sent to exchange server

That is bug 33087, fixed by r99950 and backported in 1.18 with r107920.

10 years agoUserMailer could potentially throw a fatal error when a MailAddress
Antoine Musso [Thu, 2 Feb 2012 14:15:33 +0000 (2 14:15 +0000)]
UserMailer could potentially throw a fatal error when a MailAddress
object had an empty email address.

The CodeReview extension is hitting that issue somehow (see bug 34158)

10 years agoMFT r109693 add entry to RELEASE-NOTES-1.18
Sam Reed [Sat, 21 Jan 2012 21:44:21 +0000 (21 21:44 +0000)]
MFT r109693 add entry to RELEASE-NOTES-1.18

10 years agoRevert r109196, code style fixes backported with no rationale
Chad Horohoe [Fri, 20 Jan 2012 15:54:34 +0000 (20 15:54 +0000)]
Revert r109196, code style fixes backported with no rationale

10 years agoMFT r102851, r102861
Sam Reed [Tue, 17 Jan 2012 19:57:15 +0000 (17 19:57 +0000)]
MFT r102851, r102861

10 years agoMFT to REL1_18 r98222
Antoine Musso [Thu, 12 Jan 2012 22:09:38 +0000 (12 22:09 +0000)]
MFT to REL1_18 r98222

(bug 33686) could not get a list of contributor for an article when using
a SQLite database.

10 years ago* (bug 33117) prop=revisions allows deleted text to be exposed through cache pollution1.18.1
Sam Reed [Wed, 11 Jan 2012 21:59:55 +0000 (11 21:59 +0000)]
* (bug 33117) prop=revisions allows deleted text to be exposed through cache pollution

Bump 1.18.1

10 years agoAdd RELEASE-NOTES-1.18 from r108234 that were wrongly added to 1.17, not 1.18
Sam Reed [Wed, 11 Jan 2012 20:16:59 +0000 (11 20:16 +0000)]
Add RELEASE-NOTES-1.18 from r108234 that were wrongly added to 1.17, not 1.18

10 years agoLocalisation updates from translatewiki.net
Siebrand Mazeland [Wed, 11 Jan 2012 19:14:47 +0000 (11 19:14 +0000)]
Localisation updates from translatewiki.net
* Backport compatible translations to REL1_18.

10 years agoMerge r108145, moved RELEASE-NOTES to 1.18
Sam Reed [Wed, 11 Jan 2012 15:44:33 +0000 (11 15:44 +0000)]
Merge r108145, moved RELEASE-NOTES to 1.18

10 years agoRevert r94131 out of 1.18 from r108620
Sam Reed [Wed, 11 Jan 2012 15:40:59 +0000 (11 15:40 +0000)]
Revert r94131 out of 1.18 from r108620

10 years agoMFT r92703, r94131
Sam Reed [Wed, 11 Jan 2012 14:53:08 +0000 (11 14:53 +0000)]
MFT r92703, r94131

Move RELEASE-NOTES to 1.18

10 years agoPartial revert of r108432. Meant to merge this into 1.18wmf1 (done in r108457).
Siebrand Mazeland [Mon, 9 Jan 2012 18:54:35 +0000 (9 18:54 +0000)]
Partial revert of r108432. Meant to merge this into 1.18wmf1 (done in r108457).

10 years agoFollow-up r108432: Remove leading space in line 1. Spotted by Niklas.
Siebrand Mazeland [Mon, 9 Jan 2012 18:45:02 +0000 (9 18:45 +0000)]
Follow-up r108432: Remove leading space in line 1. Spotted by Niklas.

10 years agoBackport compatible updates from trunk.
Siebrand Mazeland [Mon, 9 Jan 2012 17:36:00 +0000 (9 17:36 +0000)]
Backport compatible updates from trunk.

Among others: MFT r107067, r108415, r108418

10 years agoImprove RELEASE-NOTES-1.18 for r108045
Sam Reed [Fri, 6 Jan 2012 17:36:51 +0000 (6 17:36 +0000)]
Improve RELEASE-NOTES-1.18 for r108045

10 years ago* (bug 29102) Upgrade fails "Unknown character set: 'mysql4'.
Sam Reed [Wed, 4 Jan 2012 16:14:00 +0000 (4 16:14 +0000)]
* (bug 29102) Upgrade fails "Unknown character set: 'mysql4'.

"Merges" r108044

10 years agoDo r107998 to REL1_18
Sam Reed [Wed, 4 Jan 2012 13:32:47 +0000 (4 13:32 +0000)]
Do r107998 to REL1_18

10 years ago"Merge" r107978
Sam Reed [Wed, 4 Jan 2012 01:07:06 +0000 (4 01:07 +0000)]
"Merge" r107978

10 years agoMFT r105341, r105853, r105897
Sam Reed [Tue, 3 Jan 2012 19:26:26 +0000 (3 19:26 +0000)]
MFT r105341, r105853, r105897

10 years agoMerge r106992, manually merge r107119
Sam Reed [Tue, 3 Jan 2012 19:21:42 +0000 (3 19:21 +0000)]
Merge r106992, manually merge r107119

10 years agoManually merge r105322
Sam Reed [Tue, 3 Jan 2012 19:17:55 +0000 (3 19:17 +0000)]
Manually merge r105322

10 years agoPer request of Reedy, MFT r99942 and r99950
Alexandre Emsenhuber [Tue, 3 Jan 2012 18:38:45 +0000 (3 18:38 +0000)]
Per request of Reedy, MFT r99942 and r99950

10 years agoMFT r105007
Sam Reed [Tue, 3 Jan 2012 18:03:26 +0000 (3 18:03 +0000)]
MFT r105007

10 years agoMFT r105010, r104671, r104576, r102137
Sam Reed [Tue, 3 Jan 2012 17:53:00 +0000 (3 17:53 +0000)]
MFT r105010, r104671, r104576, r102137

10 years agoFix 107907, wgAllowSchemaUpdates stufffs
Sam Reed [Tue, 3 Jan 2012 17:38:37 +0000 (3 17:38 +0000)]
Fix 107907, wgAllowSchemaUpdates stufffs

10 years agoMFT r100348, r100640, r101656, r101867, r101869m r104030
Sam Reed [Tue, 3 Jan 2012 17:34:23 +0000 (3 17:34 +0000)]
MFT r100348, r100640, r101656, r101867, r101869m r104030

10 years agoCopy in getLanguage to prevent any silly fatals that might end up occurring
Sam Reed [Tue, 3 Jan 2012 17:14:56 +0000 (3 17:14 +0000)]
Copy in getLanguage to prevent any silly fatals that might end up occurring

10 years agoMFT r96774
Sam Reed [Tue, 3 Jan 2012 17:13:08 +0000 (3 17:13 +0000)]
MFT r96774

10 years agoMFT r99062
Sam Reed [Tue, 3 Jan 2012 17:08:19 +0000 (3 17:08 +0000)]
MFT r99062

10 years agoMFT r93789
Sam Reed [Tue, 3 Jan 2012 17:02:55 +0000 (3 17:02 +0000)]
MFT r93789

10 years agoMFT r107595
Sam Reed [Tue, 3 Jan 2012 16:54:29 +0000 (3 16:54 +0000)]
MFT r107595

* (bug 32702) Removed method Skin::makeGlobalVariablesScript() has been readded
  for backward compatibility.

10 years agomoar w/s
Mark A. Hershberger [Mon, 26 Dec 2011 00:04:09 +0000 (26 00:04 +0000)]
moar w/s

10 years agow/s
Mark A. Hershberger [Sun, 25 Dec 2011 23:57:33 +0000 (25 23:57 +0000)]
w/s

10 years agoMFT to REL1_18 r100610, bug 31921
Antoine Musso [Thu, 22 Dec 2011 09:24:47 +0000 (22 09:24 +0000)]
MFT to REL1_18 r100610, bug 31921

This is a regression in REL1_18:

(bug 31921) Magic words REVISIONDAY, REVISIONMONTH and REVISIONYEAR now
give current values on preview

10 years ago* backport of r106806
Jure Kajzer [Tue, 20 Dec 2011 16:14:55 +0000 (20 16:14 +0000)]
* backport of r106806
* TESTED install

10 years ago[RELEASE-NOTES] Fix typo
Krinkle [Mon, 19 Dec 2011 23:32:04 +0000 (19 23:32 +0000)]
[RELEASE-NOTES] Fix typo
* typo: mw.util.getScript should be mw.util.wikiScript, it was and is not named mw.util.getScript
* Introduced in r88513 under 1-19 "New features"
* r92328 merged it to 1-18 under "Bugs fixed"
* Now typo fixed and moved (back) to "New features"

10 years agoFollow up r106579
Platonides [Sun, 18 Dec 2011 22:34:47 +0000 (18 22:34 +0000)]
Follow up r106579

10 years ago* (bug 33240) Sort images are missing but references in css.
Sam Reed [Sun, 18 Dec 2011 18:43:44 +0000 (18 18:43 +0000)]
* (bug 33240) Sort images are missing but references in css.

10 years agoFor bug 33240, svn copy in sort_down.gif and sort_up.gif from REL1_17
Sam Reed [Sun, 18 Dec 2011 18:41:00 +0000 (18 18:41 +0000)]
For bug 33240, svn copy in sort_down.gif and sort_up.gif from REL1_17

References in shared.css

10 years agoFollow-up r106559: it's better to set the preference for own MediaWiki names in Langu...
Robin Pepermans [Sun, 18 Dec 2011 17:58:47 +0000 (18 17:58 +0000)]
Follow-up r106559: it's better to set the preference for own MediaWiki names in Language::getTranslatedLanguageNames. More consistent and saves some code :)
Also update Babel to use that function.

10 years agoFU r106514: use base 16 SHA-1 to be consistent with image info
Aaron Schulz [Sun, 18 Dec 2011 16:35:45 +0000 (18 16:35 +0000)]
FU r106514: use base 16 SHA-1 to be consistent with image info

10 years agoRemove ltr class (see r89466), it should not be used at all, because 1) the name...
Robin Pepermans [Sun, 18 Dec 2011 16:25:45 +0000 (18 16:25 +0000)]
Remove ltr class (see r89466), it should not be used at all, because 1) the name is too general, 2) it is automatically added to the body element (colliding class names) and 3) it is better to use HTML dir="ltr" as in r105929.

10 years agoAnd I of course forgot to commit ProtectionForm.php in r106567...
Alexandre Emsenhuber [Sun, 18 Dec 2011 16:02:14 +0000 (18 16:02 +0000)]
And I of course forgot to commit ProtectionForm.php in r106567...

10 years ago* Merged WikiPage::updateRestrictions() and Title::updateTitleProtection() into WikiP...
Alexandre Emsenhuber [Sun, 18 Dec 2011 16:01:31 +0000 (18 16:01 +0000)]
* Merged WikiPage::updateRestrictions() and Title::updateTitleProtection() into WikiPage::doUpdateRestrictions(); older methods still work for backward compatibility, but marked Title::updateTitleProtection() as deprecated and for removal in 1.20 since no extension calls it
* Removed permissions check from WikiPage::doUpdateRestrictions() and left it for callers, resolves the todo from documentation
* Inverted $expiry and $reason parameter between WikiPage::doUpdateRestrictions() and WikiPage::updateRestrictions() for more consistency; WikiPage::doUpdateRestrictions() also requires all parameters to be passed
* WikiPage::doUpdateRestrictions() returns a Status object instead of bool for the older one; only possible error at the moment is a read-only database
* Updated core calls to these functions
* Made maintenance scripts using it simply protect all actions returned by Title::getRestrictionTypes() instead of hardcoded 'edit' and 'move'
* This also means that protect.php can be used to protect a non-existing page for creation

10 years agoRevert r106545 and pass a null variable by ref (also updated the documentation) so...
Alexandre Emsenhuber [Sun, 18 Dec 2011 14:48:23 +0000 (18 14:48 +0000)]
Revert r106545 and pass a null variable by ref (also updated the documentation) so that the hook is called at the correct moment and after everything is executed.
This is *exactly* the same behaviour as before r88898 since $article was an out parameter to fill $wgArticle correctly.

10 years agoPass the User object to Revision::userCan()
Alexandre Emsenhuber [Sun, 18 Dec 2011 14:07:01 +0000 (18 14:07 +0000)]
Pass the User object to Revision::userCan()

10 years agoClarify documentation
Robin Pepermans [Sun, 18 Dec 2011 13:50:34 +0000 (18 13:50 +0000)]
Clarify documentation

10 years agoMake the output consistent when no second parameter is given and second parameter...
Robin Pepermans [Sun, 18 Dec 2011 12:17:12 +0000 (18 12:17 +0000)]
Make the output consistent when no second parameter is given and second parameter equals first parameter. This gives preference to names defined in MediaWiki, but when it is not in MediaWiki, it also sees whether there is one defined in the translated language names.

10 years agofollowup r88898 -- move BeforeInitialize hook to where it can be
Mark A. Hershberger [Sun, 18 Dec 2011 01:46:25 +0000 (18 01:46 +0000)]
followup r88898 -- move BeforeInitialize hook to where it can be
called in a way that matches the documented parameters

As it was, when an extension tried to use BeforeInitialize with the
documented parameters this resulted in an exception:

    Detected bug in an extension! Hook HookFunctionName has invalid
    call signature; Parameter 2 to HookFunctionName() expected to be a
    reference, value given

10 years agow/s
Mark A. Hershberger [Sun, 18 Dec 2011 01:32:11 +0000 (18 01:32 +0000)]
w/s

10 years agoKill some useless code in r106514
Aaron Schulz [Sat, 17 Dec 2011 23:14:39 +0000 (17 23:14 +0000)]
Kill some useless code in r106514

10 years agoPer bug 28901, and Duplicatebug on r105831, only list the Article ID if it has alread...
Sam Reed [Sat, 17 Dec 2011 19:55:49 +0000 (17 19:55 +0000)]
Per bug 28901, and Duplicatebug on r105831, only list the Article ID if it has already been loaded

Not a long term fix, but saves potentially a lot of database queries to lookup article ids, until the other issues on bug 28901 are tidied up

10 years agoMore example conversions/additions
Sam Reed [Sat, 17 Dec 2011 19:10:33 +0000 (17 19:10 +0000)]
More example conversions/additions

Ping r106439

10 years agoPass the User object to Title::userCan()
Alexandre Emsenhuber [Sat, 17 Dec 2011 18:52:52 +0000 (17 18:52 +0000)]
Pass the User object to Title::userCan()

10 years agoFollow-up r92924: move the CSS/JS for e-mail validation to Special:ChangeEmail.
Robin Pepermans [Sat, 17 Dec 2011 18:31:25 +0000 (17 18:31 +0000)]
Follow-up r92924: move the CSS/JS for e-mail validation to Special:ChangeEmail.

Also merge the different LTR/RTL styles, it is flipped anyway.

10 years agoExpose rev_sha1/ar_sha1 to API (bug 21860)
Aaron Schulz [Sat, 17 Dec 2011 18:27:38 +0000 (17 18:27 +0000)]
Expose rev_sha1/ar_sha1 to API (bug 21860)

10 years agoFixes to address MaxSem's comment on r106480 regarding DB2 tables.sql syntax, indenta...
Leons Petrazickis [Sat, 17 Dec 2011 15:59:21 +0000 (17 15:59 +0000)]
Fixes to address MaxSem's comment on r106480 regarding DB2 tables.sql syntax, indentation, and capitalization:
* Made all table and column names lowercase for consistency
* Removed " from around some "identifiers". Not necessary for DB2.
* Applied consistent indentation to all table declarations
* Applied consistent indentation to all index declarations
* Moved all PRIMARY KEY clauses to their own line for consistency and max line length
* Moved all ON clauses to their own line for consistency and max line length
* Fixed vertical alignment for column names and data types, remove all other vertical alignment
* Removed commented out references to SEQUENCE values, as they are used in neither DB2 nor MySQL schemas.
* Consistent spacing around parens () and commas ,
* Capitalized all data types.
* Note: tables.sql is approaching DB2's 32k limit. It will need to be split into two files soon.

10 years agoUse local context to get messages
Alexandre Emsenhuber [Sat, 17 Dec 2011 13:24:40 +0000 (17 13:24 +0000)]
Use local context to get messages

10 years agoPer Aaron, fix typo in r102187
Alexandre Emsenhuber [Sat, 17 Dec 2011 13:10:48 +0000 (17 13:10 +0000)]
Per Aaron, fix typo in r102187

10 years agoFU r98698: Show any PHP warnings in tryRespondFromFileCache() in debug mode
Aaron Schulz [Sat, 17 Dec 2011 05:02:15 +0000 (17 05:02 +0000)]
FU r98698: Show any PHP warnings in tryRespondFromFileCache() in debug mode

10 years agofollow up to r106456 - use one setting instead two, which apparently made my commit...
Jeroen De Dauw [Fri, 16 Dec 2011 23:13:10 +0000 (16 23:13 +0000)]
follow up to r106456 - use one setting instead two, which apparently made my commit into a fixme

10 years agoFix parser error in r106480.
Platonides [Fri, 16 Dec 2011 22:33:02 +0000 (16 22:33 +0000)]
Fix parser error in r106480.

PHP Parse error:  syntax error, unexpected T_ARRAY, expecting ')' in includes/installer/Ibm_db2Updater.php on line 55

10 years agoFixes to DB2 support:
Leons Petrazickis [Fri, 16 Dec 2011 21:17:20 +0000 (16 21:17 +0000)]
Fixes to DB2 support:
* Database schema update to reflect 1.18 and 1.19 changes.
* Better support for numRows() and dataSeek() functions on DB2 result sets.
* Updates to DB2 installer and updater classes.
* Developed by Andre, Diego, and other students at Minho University and reviewed by me.
* See r85885, r85896.