lhc/web/wiklou.git
9 years agoRemove some silly references to skins/common/
Bartosz Dziewoński [Thu, 7 Aug 2014 00:05:08 +0000 (02:05 +0200)]
Remove some silly references to skins/common/

Change-Id: I7676de39bf43ab01776198531e337b34405b941a

9 years agoMerge "MediaWiki UI: Adjustments to mw-ui-input"
jenkins-bot [Wed, 6 Aug 2014 23:52:30 +0000 (23:52 +0000)]
Merge "MediaWiki UI: Adjustments to mw-ui-input"

9 years agoMerge "SpecialWithoutInterwiki: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 23:39:15 +0000 (23:39 +0000)]
Merge "SpecialWithoutInterwiki: Use Config instead of globals"

9 years agoMerge "SpecialWhatlinkshere: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 23:39:02 +0000 (23:39 +0000)]
Merge "SpecialWhatlinkshere: Use Config instead of globals"

9 years agoMerge "mediawiki.notification: Document that #notify accepts HTMLElement[] too"
jenkins-bot [Wed, 6 Aug 2014 23:03:03 +0000 (23:03 +0000)]
Merge "mediawiki.notification: Document that #notify accepts HTMLElement[] too"

9 years agoMerge "SpecialWantedPages: Use Config instead of globals"
Kunal Mehta [Wed, 6 Aug 2014 22:59:53 +0000 (22:59 +0000)]
Merge "SpecialWantedPages: Use Config instead of globals"

9 years agoSpecialWithoutInterwiki: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 22:58:03 +0000 (23:58 +0100)]
SpecialWithoutInterwiki: Use Config instead of globals

Change-Id: I19bf57bdbf0c793cba25033d219d35353f3ae936

9 years agomediawiki.notification: Document that #notify accepts HTMLElement[] too
Bartosz Dziewoński [Wed, 6 Aug 2014 22:53:55 +0000 (00:53 +0200)]
mediawiki.notification: Document that #notify accepts HTMLElement[] too

Practical use case: mw.notify( $.parseHTML( … ) )

Change-Id: I6396e5d0fde0079e396286c2edad37d95a0578d8

9 years agoMerge "SpecialActiveusers: Use Config objects instead of globals"
jenkins-bot [Wed, 6 Aug 2014 21:43:59 +0000 (21:43 +0000)]
Merge "SpecialActiveusers: Use Config objects instead of globals"

9 years agoMerge "SpecialUndelete/PageArchive: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 21:42:00 +0000 (21:42 +0000)]
Merge "SpecialUndelete/PageArchive: Use Config instead of globals"

9 years agoMerge "SpecialTrackingCategories: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 21:38:15 +0000 (21:38 +0000)]
Merge "SpecialTrackingCategories: Use Config instead of globals"

9 years agoMerge "SpecialStatistics: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 21:31:27 +0000 (21:31 +0000)]
Merge "SpecialStatistics: Use Config instead of globals"

9 years agoMerge changes I5d11a642,I4ed191bd
jenkins-bot [Wed, 6 Aug 2014 21:26:22 +0000 (21:26 +0000)]
Merge changes I5d11a642,I4ed191bd

* changes:
  SpecialProtectedTitles: Use Config instead of globals
  Pass a real IContextSource to ProtectedTitlesPager

9 years agoSpecialWhatlinkshere: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 17:28:20 +0000 (18:28 +0100)]
SpecialWhatlinkshere: Use Config instead of globals

Change-Id: Ib785ea6371801e7864a8d3a4f19a7a3ffa4760c5

9 years agoMerge "SpecialRandomInCategory: Use wfScript() instead of global"
jenkins-bot [Wed, 6 Aug 2014 21:17:41 +0000 (21:17 +0000)]
Merge "SpecialRandomInCategory: Use wfScript() instead of global"

9 years agoMerge "SpecialWatchlist: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 21:16:11 +0000 (21:16 +0000)]
Merge "SpecialWatchlist: Use Config instead of globals"

9 years agoMerge "SpecialUserRights: Use Config instead of globals"
Addshore [Wed, 6 Aug 2014 21:10:15 +0000 (21:10 +0000)]
Merge "SpecialUserRights: Use Config instead of globals"

9 years agoMerge "Consistent handling of multiple keys in Message"
jenkins-bot [Wed, 6 Aug 2014 20:45:37 +0000 (20:45 +0000)]
Merge "Consistent handling of multiple keys in Message"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 6 Aug 2014 20:36:07 +0000 (22:36 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Icd6f11894222ab4ec19bfc240ef190ed9e931f76

9 years agoMerge "Remove IEFixes.js (legacy support for MSIE<=6)."
jenkins-bot [Wed, 6 Aug 2014 19:05:42 +0000 (19:05 +0000)]
Merge "Remove IEFixes.js (legacy support for MSIE<=6)."

9 years agoMediaWiki UI: Adjustments to mw-ui-input
Shahyar [Wed, 30 Jul 2014 23:06:52 +0000 (19:06 -0400)]
MediaWiki UI: Adjustments to mw-ui-input

Correcting slight issues with mw-ui-input with
focus behaviour and vertical alignment

Use negative margin to ensure that when input element is
focused that all 4 border sides are shown rather than just
3.

Change-Id: I9d51fcd1781a9a615e3b41e6988e19021466a9d1

9 years agoLSG: Allow the style guide to build without npm present at runtime
Matthew Flaschen [Tue, 5 Aug 2014 22:07:05 +0000 (18:07 -0400)]
LSG: Allow the style guide to build without npm present at runtime

By only requiring the actual kss-node executable, this allows
running "npm install" at a separate time/machine from the actual
build.

For example, this is useful since the machines used to run Tool Labs
grid jobs do not have npm.

Change-Id: I561b365d4aaf44d921fb54a020e9ff6319318063

9 years agoSpecialRecentChanges: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:35:56 +0000 (17:35 -0700)]
SpecialRecentChanges: Use Config instead of globals

Change-Id: I9994f40165f45a51e07ed8519e9c50e907c29094

9 years agoMerge "Use a special fallback skin when selected skin is unavailable"
jenkins-bot [Wed, 6 Aug 2014 17:29:37 +0000 (17:29 +0000)]
Merge "Use a special fallback skin when selected skin is unavailable"

9 years agoMerge "QUnit: fix swapped expected/actual fields"
jenkins-bot [Wed, 6 Aug 2014 17:25:03 +0000 (17:25 +0000)]
Merge "QUnit: fix swapped expected/actual fields"

9 years agoMerge "SpecialSearch: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 17:24:37 +0000 (17:24 +0000)]
Merge "SpecialSearch: Use Config instead of globals"

9 years agoMerge "SpecialUnlockdb: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 17:24:33 +0000 (17:24 +0000)]
Merge "SpecialUnlockdb: Use Config instead of globals"

9 years agoMerge "SpecialUploadStash: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 17:20:35 +0000 (17:20 +0000)]
Merge "SpecialUploadStash: Use Config instead of globals"

9 years agoMerge "SpecialUnusedimages: Use Config instead of globals"
jenkins-bot [Wed, 6 Aug 2014 17:20:32 +0000 (17:20 +0000)]
Merge "SpecialUnusedimages: Use Config instead of globals"

9 years agoSpecialWatchlist: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 17:20:30 +0000 (18:20 +0100)]
SpecialWatchlist: Use Config instead of globals

Change-Id: I98e095ae31c0e44d7f22a23e85c6fc671b2a66bc

9 years agoSpecialWantedPages: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 17:15:29 +0000 (18:15 +0100)]
SpecialWantedPages: Use Config instead of globals

Change-Id: I1969af7c5367f13493b4ba938f20972bb8a72ce1

9 years agoUse a special fallback skin when selected skin is unavailable
Bartosz Dziewoński [Tue, 22 Jul 2014 21:27:32 +0000 (23:27 +0200)]
Use a special fallback skin when selected skin is unavailable

It just displays a helpful message that explains why and how to
install and enable skins. There is no navigation nor other basic page
elements (like the logo or site notice), since this is not intended to
be a fully functional skin.

Bug: 68332
Change-Id: Id14fbb8733cd8fbb912a724ac658f5e7244364b5

9 years agoRemove IEFixes.js (legacy support for MSIE<=6).
Eloquence [Wed, 6 Aug 2014 16:05:54 +0000 (17:05 +0100)]
Remove IEFixes.js (legacy support for MSIE<=6).

Since JavaScript is no longer loaded in MSIE6, these compatibility
fixes are no longer required.

Change-Id: Ib2a2be28877911ec20a76c766a49581eda9c5a5f

9 years agoQUnit: fix swapped expected/actual fields
Derk-Jan Hartman [Wed, 6 Aug 2014 15:50:28 +0000 (16:50 +0100)]
QUnit: fix swapped expected/actual fields

Change-Id: I55db7e3ef4e155fb9e1152cbf777189d04eec951

9 years agoSpecialUserRights: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 15:41:23 +0000 (16:41 +0100)]
SpecialUserRights: Use Config instead of globals

Change-Id: Ied99264c0d47023cefec9b5d37d758978c480ee2

9 years agoSpecialSearch: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 14:51:25 +0000 (15:51 +0100)]
SpecialSearch: Use Config instead of globals

Change-Id: I18b3ad47497e9bc82d38bc17225c8e0e9268ba83

9 years agoSpecialUploadStash: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 15:38:27 +0000 (16:38 +0100)]
SpecialUploadStash: Use Config instead of globals

Change-Id: I48a5838539b6aac822dd6806facbb1e8de204e4e

9 years agoMerge "Release notes for "Disable JavaScript for MSIE6 users""
jenkins-bot [Wed, 6 Aug 2014 15:31:22 +0000 (15:31 +0000)]
Merge "Release notes for "Disable JavaScript for MSIE6 users""

9 years agoSpecialUnusedimages: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 15:23:27 +0000 (16:23 +0100)]
SpecialUnusedimages: Use Config instead of globals

Change-Id: Iee9398ec8bc223b4833aa4055c32577cfc3227e1

9 years agoSpecialUnlockdb: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 15:22:35 +0000 (16:22 +0100)]
SpecialUnlockdb: Use Config instead of globals

Change-Id: Id6e2c0511113b24a7f90a7e3d50ab9b0f787f356

9 years agoSpecialUndelete/PageArchive: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 15:20:26 +0000 (16:20 +0100)]
SpecialUndelete/PageArchive: Use Config instead of globals

Change-Id: Ic025412ed74d9cffad48a3ab04788d46ab43befb

9 years agoSpecialTrackingCategories: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 15:02:44 +0000 (16:02 +0100)]
SpecialTrackingCategories: Use Config instead of globals

Change-Id: I89513fcde54c7b0ec856f08612802b5f1b47503d

9 years agoSpecialStatistics: Use Config instead of globals
Kunal Mehta [Wed, 6 Aug 2014 15:01:02 +0000 (16:01 +0100)]
SpecialStatistics: Use Config instead of globals

Change-Id: I2192d351a9e5398ffc8d02eaa7d26c11298537ea

9 years agoRemove $wgSortSpecialPages
Kunal Mehta [Wed, 6 Aug 2014 14:54:41 +0000 (15:54 +0100)]
Remove $wgSortSpecialPages

This is a silly option, and there's no reason you wouldn't
want them sorted.

Change-Id: Iec1598fce2278d2d8d7b89a75f888e3de9801d17

9 years agoRelease notes for "Disable JavaScript for MSIE6 users"
Eloquence [Wed, 6 Aug 2014 14:44:26 +0000 (15:44 +0100)]
Release notes for "Disable JavaScript for MSIE6 users"

Follow-up to commit 05d0f6fefdcc959dfe7cb0cc409fcc7a4d2162e4

Change-Id: I31d221236c9b3878ce105460b978a9e1db35bec5

9 years agoMerge "Disable JavaScript for MSIE6 users, update tests accordingly"
jenkins-bot [Wed, 6 Aug 2014 14:24:44 +0000 (14:24 +0000)]
Merge "Disable JavaScript for MSIE6 users, update tests accordingly"

9 years agoMerge "Move MW_LC_VERSION to class constant instead of global define"
jenkins-bot [Wed, 6 Aug 2014 14:21:16 +0000 (14:21 +0000)]
Merge "Move MW_LC_VERSION to class constant instead of global define"

9 years agoDisable JavaScript for MSIE6 users, update tests accordingly
Eloquence [Wed, 6 Aug 2014 13:18:34 +0000 (14:18 +0100)]
Disable JavaScript for MSIE6 users, update tests accordingly

MSIE6 is outdated and unsupported and has several unpatched security
vulnerabilities. [1] Its usage is strongly discouraged by Microsoft. [2]
Supporting its JavaScript engine requires significant testing and
development effort which is better spent elsewhere.

This effectively demotes MSIE6 to "Grade C" status per the MediaWiki
browser compatibility standards. [3]

This commit also labels the startup tests as "grade C" consistent with
the browser compatibility guidelines.

[1] http://secunia.com/advisories/product/11/
[2] https://www.modern.ie/en-us/ie6countdown
[3] https://www.mediawiki.org/wiki/Compatibility#Grade_C

Change-Id: I98140491ee980f65eac782b00c478f4f5c3a47fb

9 years agoUpdate OOjs UI to v0.1.0-pre (0e50d2e336)
Roan Kattouw [Wed, 6 Aug 2014 12:56:55 +0000 (13:56 +0100)]
Update OOjs UI to v0.1.0-pre (0e50d2e336)

New changes:
1283a33 Localisation updates from https://translatewiki.net.
0e50d2e Initialise dir property and use a getter

Change-Id: Ieb469d38e881cf7de284a987301626a2f945d2df

9 years agoMove MW_LC_VERSION to class constant instead of global define
Chad Horohoe [Wed, 6 Aug 2014 12:35:48 +0000 (13:35 +0100)]
Move MW_LC_VERSION to class constant instead of global define

Change-Id: I184ec13081a5cf60d593a1c25c091b1db7b344a9

9 years agojquery.confirmable: New inline confirmation module
Bartosz Dziewoński [Mon, 28 Oct 2013 14:56:30 +0000 (15:56 +0100)]
jquery.confirmable: New inline confirmation module

$().confirmable() can be applied to any inline-block element. It will
cause it to expand into "Are you sure? [Yes] [No]" question and
buttons when clicked, where the buttons are clones of the original
element: [Yes] will carry out the default action (or a different one,
if specified), [No] will collapse the interface back.

Possible uses include:
* Confirmable "rollback" links
* Confirmable "unwatch" links on watchlists
* Confirmable "thank" links (Echo extension's ones)

Added a demo with possible uses on history and watchlist pages.
Included Hebrew messages courtesy of Moriel.

Change-Id: I2f6e0bd4f6f0a84e1a0d7193cde076738f3cdd25

9 years agoConsistent handling of multiple keys in Message
daniel [Thu, 17 Apr 2014 09:01:36 +0000 (11:01 +0200)]
Consistent handling of multiple keys in Message

Message objects may be constructed with a list of keys as a
simple fallback mechanism. This patch assures consistent
handling of this case.

Change-Id: I458c0af3114754ddf3d721f6c374e249f482e4cf

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 5 Aug 2014 19:44:53 +0000 (21:44 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1e884e2a94ffb687ad82a41008b6ee8b00a8f039

9 years agoMerge "Add gender for upload log entries"
jenkins-bot [Tue, 5 Aug 2014 15:09:51 +0000 (15:09 +0000)]
Merge "Add gender for upload log entries"

9 years agoMerge "Update links for software homepages"
jenkins-bot [Tue, 5 Aug 2014 14:49:07 +0000 (14:49 +0000)]
Merge "Update links for software homepages"

9 years agoMerge "mediawiki.jqueryMsg.test.js: Additional test cases for external link"
jenkins-bot [Mon, 4 Aug 2014 23:15:21 +0000 (23:15 +0000)]
Merge "mediawiki.jqueryMsg.test.js: Additional test cases for external link"

9 years agoMerge "Preferences: Disable the 'skin' preference if there are no skins"
jenkins-bot [Mon, 4 Aug 2014 20:04:09 +0000 (20:04 +0000)]
Merge "Preferences: Disable the 'skin' preference if there are no skins"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 4 Aug 2014 19:39:15 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I02368e329c1c30add1269663e5c4b2a658dadbbb

9 years agoMerge "Add loadPasswords() calls to User password mutators"
jenkins-bot [Mon, 4 Aug 2014 18:26:50 +0000 (18:26 +0000)]
Merge "Add loadPasswords() calls to User password mutators"

9 years agoRemove unused globals
addshore [Mon, 4 Aug 2014 08:43:50 +0000 (09:43 +0100)]
Remove unused globals

These were missed in I4a87a7007f4adc2ab47be1207f1a04a5ccd31323

Change-Id: I1fc0435c1cd359a30cb1a9f5f07ebadd6e14bcf1

9 years agoTests for API action=revisiondelete
Kunal Mehta [Sun, 27 Oct 2013 04:53:39 +0000 (21:53 -0700)]
Tests for API action=revisiondelete

Change-Id: Ida8acb8a58fe3e871ac30727d90e22fff04f488d

9 years agoUpdate links for software homepages
Fomafix [Mon, 4 Aug 2014 15:53:56 +0000 (15:53 +0000)]
Update links for software homepages

Avoid redirects.

This is the current situation:
* MySQL: http://www.mysql.com/ redirects to https://www.mysql.com/
* MariaDB: http://mariadb.org/ redirects to https://mariadb.org/
* Percona: https://www.percona.com/ redirects to http://www.percona.com/
* PostgreSQL: https://www.postgresql.org/ redirects to http://www.postgresql.org/
* Oracle: https://www.oracle.com/ redirects to http://www.oracle.com/
* SQLite: http://www.sqlite.org/ redirects to https://www.sqlite.org/
* Microsoft: Supports http://www.microsoft.com/ and https://www.microsoft.com/
  and http://microsoft.com/ and https://microsoft.com/ redirects to https://www.microsoft.com/
* PHP: http://www.php.net/ redirects to http://php.net/
  and https://www.php.net/ redirects to https://php.net/

Change-Id: I3da95a22386cc5e479ac1365a6680bf54bdcd81a

9 years agoAdd gender for upload log entries
umherirrender [Mon, 4 Aug 2014 15:25:11 +0000 (17:25 +0200)]
Add gender for upload log entries

With Icd8662ecb9eb0f6c0ff9841bdbd5736d6dd0d015 the log for uploads was
migrated to the new system, but no formatter was set to use the new
system also on Special:Log.
There is no need for an extra formatter class, because at the moment
there is nothing extra to format.

Added the new messages and adjust them. Now upload logs supports gender.
The old messages are kept for IRC where there were already in use.
This also hide the params added with
Icd8662ecb9eb0f6c0ff9841bdbd5736d6dd0d015 on Special:Log, because there
are not needed for i18n.

Change-Id: Idf281898d8a5a023a0b9ce3bc90b3ca55c1a6376

9 years agoHTMLForm: Avoid usage of non-standard 'flags' parameter of String#replace
Brad Jorsch [Wed, 16 Jul 2014 21:04:20 +0000 (17:04 -0400)]
HTMLForm: Avoid usage of non-standard 'flags' parameter of String#replace

Chrome (and most other browser) don't support the non-standard 'flags'
argument to String#replace (implemented by Mozilla Firefox). Instead pass
a RegExp object with those flags.

Bug: 68050
Change-Id: Ia463002e708975eed1a5c3657f2e1a4d6b4e74de

9 years agoAdd loadPasswords() calls to User password mutators
Tyler Romeo [Mon, 4 Aug 2014 15:10:01 +0000 (11:10 -0400)]
Add loadPasswords() calls to User password mutators

In User::setPassword() and User::setNewpassword(), added
calls to loadPasswords() so that the passwords are not
overridden when they are eventually actually loaded.

Bug: 69102
Change-Id: I0b881986323051abed7d1af816eae9eafdbd6782

9 years agoMerge "Fixed spacing"
jenkins-bot [Mon, 4 Aug 2014 11:13:21 +0000 (11:13 +0000)]
Merge "Fixed spacing"

9 years agoMerge "Fixed docs"
jenkins-bot [Mon, 4 Aug 2014 11:11:41 +0000 (11:11 +0000)]
Merge "Fixed docs"

9 years agoMerge "SpecialMyLanguage: Use Config instead of globals"
Addshore [Mon, 4 Aug 2014 10:24:15 +0000 (10:24 +0000)]
Merge "SpecialMyLanguage: Use Config instead of globals"

9 years agoMerge "SpecialNewImages: Use Config instead of globals"
Addshore [Mon, 4 Aug 2014 10:24:06 +0000 (10:24 +0000)]
Merge "SpecialNewImages: Use Config instead of globals"

9 years agoMerge "SpecialPageLanguage: Use Config instead of globals"
Addshore [Mon, 4 Aug 2014 10:23:56 +0000 (10:23 +0000)]
Merge "SpecialPageLanguage: Use Config instead of globals"

9 years agoMerge "SpecialResetTokens: Use Config instead of globals"
Addshore [Mon, 4 Aug 2014 10:16:46 +0000 (10:16 +0000)]
Merge "SpecialResetTokens: Use Config instead of globals"

9 years agoFixed docs
umherirrender [Mon, 4 Aug 2014 10:00:15 +0000 (12:00 +0200)]
Fixed docs

- Use short form of boolean
- Use capital at begin of doc text

Change-Id: Ic5afacfa7298b1938d3b45ffd0cac5ce01f2f9db

9 years agoMerge "Fix bad reference in method doc"
jenkins-bot [Mon, 4 Aug 2014 09:55:32 +0000 (09:55 +0000)]
Merge "Fix bad reference in method doc"

9 years agoMerge "SpecialMovepage: Use Config instead of globals"
jenkins-bot [Mon, 4 Aug 2014 09:55:26 +0000 (09:55 +0000)]
Merge "SpecialMovepage: Use Config instead of globals"

9 years agoFixed spacing
umherirrender [Mon, 4 Aug 2014 09:51:22 +0000 (11:51 +0200)]
Fixed spacing

- Removed spaces around array index
- Changed else if to elseif
- Added space after foreach/if/function
- include_once is not a function

Change-Id: I7745ae791d1b7e60cfebec6d268513a9cc071bdd

9 years agoMerge "SpecialNewPages: Use Config instead of globals"
jenkins-bot [Mon, 4 Aug 2014 09:49:55 +0000 (09:49 +0000)]
Merge "SpecialNewPages: Use Config instead of globals"

9 years agoMerge "SpecialPasswordReset: Use Config instead of globals"
jenkins-bot [Mon, 4 Aug 2014 09:47:28 +0000 (09:47 +0000)]
Merge "SpecialPasswordReset: Use Config instead of globals"

9 years agoFix bad reference in method doc
Niklas Laxström [Mon, 4 Aug 2014 09:43:03 +0000 (11:43 +0200)]
Fix bad reference in method doc

Change-Id: Ic721a869cc25792f2fb3a66803efe48d36c4939c

9 years agoMerge "SpecialProtectedPages: Use Config instead of globals"
jenkins-bot [Mon, 4 Aug 2014 09:39:09 +0000 (09:39 +0000)]
Merge "SpecialProtectedPages: Use Config instead of globals"

9 years agoImprove PHPUnit detection code
Ori Livneh [Mon, 4 Aug 2014 05:48:40 +0000 (22:48 -0700)]
Improve PHPUnit detection code

The code that attempts to load PHPUnit is simpler and clearer when rewritten as
a loop that iterates through a set of possible include paths for PHPUnit,
ordered from most to least desirable, and which tries each include path in turn
and then checks if the requisite classes are now loaded.

Also simplify check for PHP version: MediaWiki requires 5.3+, so might as well
assume it.

Change-Id: I9e25d69c1381cf3a87e7df2baf346bc6bb5aa052

9 years agoAdd getPassword/getTemporaryPassword accessors to User
Kunal Mehta [Mon, 4 Aug 2014 01:41:39 +0000 (18:41 -0700)]
Add getPassword/getTemporaryPassword accessors to User

In I0a9c972931a, User::load() no longer loaded the
mPassword and mNewpassword member variables, and
User::loadPasswords() is private. So this lets
things that need to access the Password objects directly.

Change-Id: Ib79ce01a47f90af681e376ce918eda559b4b94a6

9 years agoMerge "SpecialJavaScriptTest: Use Config instead of globals"
Kunal Mehta [Mon, 4 Aug 2014 00:39:38 +0000 (00:39 +0000)]
Merge "SpecialJavaScriptTest: Use Config instead of globals"

9 years agoSpecialResetTokens: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:37:38 +0000 (17:37 -0700)]
SpecialResetTokens: Use Config instead of globals

Change-Id: Iab521a681751e70c369ebf90c8ef4dab4a5d9d4a

9 years agoSpecialRandomInCategory: Use wfScript() instead of global
Kunal Mehta [Mon, 4 Aug 2014 00:31:29 +0000 (17:31 -0700)]
SpecialRandomInCategory: Use wfScript() instead of global

Change-Id: Ibc6b05bbb9579c4fb7df6aa2917b3775d44098c2

9 years agoSpecialProtectedTitles: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:30:44 +0000 (17:30 -0700)]
SpecialProtectedTitles: Use Config instead of globals

Change-Id: I5d11a642026e3771528c6627864083e63b68f9b2

9 years agoPass a real IContextSource to ProtectedTitlesPager
Kunal Mehta [Mon, 4 Aug 2014 00:29:27 +0000 (17:29 -0700)]
Pass a real IContextSource to ProtectedTitlesPager

Change-Id: I4ed191bddb70bb7c0b7cc234862d5a73d1f2d0a5

9 years agoSpecialProtectedPages: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:28:34 +0000 (17:28 -0700)]
SpecialProtectedPages: Use Config instead of globals

Change-Id: Iecad936dca63dd9d2660d16a855ecd6a3336623e

9 years agoSpecialPasswordReset: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:27:07 +0000 (17:27 -0700)]
SpecialPasswordReset: Use Config instead of globals

Change-Id: I017fb8b636771902c3b50c5588e6ae3d5db70688

9 years agoSpecialPageLanguage: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:22:24 +0000 (17:22 -0700)]
SpecialPageLanguage: Use Config instead of globals

Change-Id: Icd3b1a7f32eeae7a433920de93337b29a5c4e222

9 years agoSpecialNewPages: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:20:30 +0000 (17:20 -0700)]
SpecialNewPages: Use Config instead of globals

Change-Id: I3a8aadc491ca3ece1bd4314c919741ff00a7cfc5

9 years agoSpecialNewImages: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:14:35 +0000 (17:14 -0700)]
SpecialNewImages: Use Config instead of globals

Change-Id: I713ebc5a45dd01e83d32cd68e52ffd557dc52aee

9 years agoSpecialMyLanguage: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:11:17 +0000 (17:11 -0700)]
SpecialMyLanguage: Use Config instead of globals

Change-Id: I30291d1e062ccaa7f3d05697c2b4ade3ac4ef11d

9 years agoSpecialMovepage: Use Config instead of globals
Kunal Mehta [Mon, 4 Aug 2014 00:02:42 +0000 (17:02 -0700)]
SpecialMovepage: Use Config instead of globals

Change-Id: I19978393120f542d9b11b28870e452062777ee78

9 years agoMerge "SpecialLog: Use Config instead of globals"
Kunal Mehta [Sun, 3 Aug 2014 23:57:43 +0000 (23:57 +0000)]
Merge "SpecialLog: Use Config instead of globals"

9 years agoUse wfScript() instead of globals in a few places
Kunal Mehta [Sun, 3 Aug 2014 23:41:53 +0000 (16:41 -0700)]
Use wfScript() instead of globals in a few places

Change-Id: I8a23e7b647c082119799b5bc8cfd5ff76c712f85

9 years agoMerge "SpecialLockdb: Use Config instead of globals"
jenkins-bot [Sun, 3 Aug 2014 23:39:53 +0000 (23:39 +0000)]
Merge "SpecialLockdb: Use Config instead of globals"

9 years agoSpecialLog: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:38:57 +0000 (16:38 -0700)]
SpecialLog: Use Config instead of globals

Change-Id: I79fca62fccf27618f1da94c2d0fb263daad5c875

9 years agoMerge "SpecialListUsers: Use Config instead of globals"
jenkins-bot [Sun, 3 Aug 2014 23:36:07 +0000 (23:36 +0000)]
Merge "SpecialListUsers: Use Config instead of globals"

9 years agoSpecialLockdb: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:35:52 +0000 (16:35 -0700)]
SpecialLockdb: Use Config instead of globals

Change-Id: I70b1fc0a4c89628c504f75e5e19beff5169cd5cb

9 years agoSpecialListUsers: Use Config instead of globals
Kunal Mehta [Sun, 3 Aug 2014 23:32:04 +0000 (16:32 -0700)]
SpecialListUsers: Use Config instead of globals

Change-Id: I3016d40bc36438b261b329d6db6bb38798079623