Commit graph

15 commits

Author SHA1 Message Date
Aaron Schulz
dcd0a3d534 Add isCurrentWikiId()/isCurrentWikiDomain()/getCurrentWikiDomain() to WikiMap
Use these in place of various wfWikiID() calls.

Also cleanup UserRightsProxy wiki ID variable names and removed unused
and poorly named getDBname() method.

Change-Id: Ib28889663989382d845511f8d34712b08317f60e
2018-10-29 14:53:37 -07:00
Bartosz Dziewoński
485f66f174 Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient
Find: /isset\(\s*([^()]+?)\s*\)\s*\?\s*\1\s*:\s*/
Replace with: '\1 ?? '

(Everywhere except includes/PHPVersionCheck.php)
(Then, manually fix some line length and indentation issues)

Then manually reviewed the replacements for cases where confusing
operator precedence would result in incorrect results
(fixing those in I478db046a1cc162c6767003ce45c9b56270f3372).

Change-Id: I33b421c8cb11cdd4ce896488c9ff5313f03a38cf
2018-05-30 18:06:13 -07:00
Jayprakash12345
011711e79f Fix typo accessable --> accessible
Change-Id: I239a15e1bc3a311d9284285a04094afae331111d
2018-03-14 05:25:34 +00:00
Aaron Schulz
656f60c154 Add ExternalStoreMedium::isReadOnly() method
Use this to abort out of store() calls early

Bug: T187942
Change-Id: I9334d36e8bc3e4589775471eee03be4f4a3119a3
2018-02-22 08:15:20 -08:00
Umherirrender
f739a8f368 Improve some parameter docs
Add missing @return and @param to function docs and fixed some @param

Change-Id: I810727961057cfdcc274428b239af5975c57468d
2017-09-10 20:32:31 +02:00
Kunal Mehta
6e9b4f0e9c Convert all array() syntax to []
Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Reedy
00c426e3c2 Replace wfBaseConvert with Wikimedia\base_convert
Change-Id: Iadab3d018c3559daf79be90edb23d131729bdb68
2015-11-24 22:51:42 +00:00
Aaron Schulz
a071365392 Tweaked generated paths for ExternalStoreMwstore
* This improve the object store case (with B-Tree container listings
  and 2-level sharding set up).

Change-Id: If75f51fb07cd5df0da455d4e6eafe06d69e8b941
2014-02-13 10:15:13 -08:00
Siebrand Mazeland
d4902a82db Update formatting of externalstore classes
Change-Id: Ie31c370ba497eedc7458973b704132cf4725cf1f
2013-11-26 13:16:02 +00:00
Siebrand Mazeland
bc02ae439b Do not call FileBackendGroup::get() statically
Change-Id: If63ba967177415d2f0e857dba33a09157c401909
2013-11-22 21:27:04 +01:00
Aaron Schulz
9e54e6239c Added batchFetchFromURLs() for mwstore backend
Change-Id: I71cfe206c8eef79acb6507bc841a4798747a5f84
2013-08-13 00:11:11 -07:00
Aaron Schulz
73ef79925a [ExternalStore] Made ExternalStoreMwstore use private containers.
Change-Id: Ice87446b9d3a8d178f0fda10ba606d60089d76d4
2013-02-07 20:33:38 -08:00
Aaron Schulz
5c90be4738 Fixed bogus function call.
Change-Id: I7357a1fb9d51660f81ed611260d82d11674342d9
2013-02-07 14:42:26 -08:00
Aaron Schulz
153493e7f9 [ExternalStore] Small documentation tweaks.
Change-Id: I8c94dc3b1c69239c67d7ea9382e45b7f2aacd694
2013-02-07 10:09:48 -08:00
Aaron Schulz
0beb6f9832 [ExternalStore] Added ExternalStoreMwstore class that uses a file backend.
Change-Id: I7785a621fe32f549b2e7c636f2b6e7b18be367f4
2013-02-07 09:52:03 -08:00