Commit graph

28 commits

Author SHA1 Message Date
Umherirrender
130ec2523d Fix PhanTypeMismatchDeclaredParam
Auto fix MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam sniff

Change-Id: I865323fd0295aabd06f3e3c75e0e5043fb31069e
2018-07-07 00:34:30 +00:00
Bartosz Dziewoński
01936fa994 BlockLogFormatter: Durations are relative to block's timestamp, not Unix epoch
Also fixed legacy code in LogFormatter producing messages for IRC feed.

Bug: T55907
Change-Id: I0df19574f74210a91ce72c79188b6618f04ef9a2
2017-01-18 13:21:56 +00:00
jenkins-bot
bb333d91a4 Merge "Show absolute block expiry in user timezone on block logs" 2016-04-09 19:37:29 +00:00
umherirrender
afd72226b8 Show absolute block expiry in user timezone on block logs
For this add an user parameter to Language::translateBlockExpiry.
This allows the function to display the absolute block expiry in the
user's time zone. Use this when formatting block log entries.

This also avoids the use of $wgUser

Bug: T131241
Change-Id: If0a1d3c88bb4242a016eb9b2df115413de786149
2016-04-09 20:57:33 +02:00
Kevin Israel
5b48bf1b92 Clean up after "Kill mbstring fallbacks"
* Removed fallback code from Language, the associated data file
  (Utf8Case.ser), and the code to generate that data file.
* Removed comment in LanguageFi that "mb_substr has a compatibility
  function in GlobalFunctions.php".
* Removed check for mbstring in bench_utf8_title_check.php.
* In the tests for StringUtils::isUtf8():
  * Removed separate test for the non-mbstring code path.
  * Removed mentions of mbstring from function names and assertion
    messages, since mb_check_encoding() is now always used.
* Also updated the comment in StringUtils::isUtf8() referring to
  PHP 5.3, which is no longer supported in MediaWiki, to indicate
  that the same issue also exists in old versions of HHVM. (If
  we don't have to support 3.4 or older, then the function could
  be deprecated and removed if desired.)

Follows-up 943563062f.

Change-Id: I55e5cd534b849c6ea06a7fadacbbf34a12d87ebe
2016-04-07 09:02:37 -04: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
Amir E. Aharoni
b92ffeab3c Make the comment in the beginning of LanguageFi.php shorter
It also makes it less confusing.
This case was similar to Niklas's comment at
https://gerrit.wikimedia.org/r/#/c/172501/10/languages/classes/LanguageRu.php

Change-Id: Id6b6cd5e7985ee3742894c268b32252cf231f32b
2015-09-26 18:35:14 +03:00
Vivek Ghaisas
9f5b6f5aeb Fix whitespace issues around parentheses
Fix issues found by MediaWiki.WhiteSpace.SpaceyParenthesis sniff.

Bug: T102617
Change-Id: Iec7f71e64081659fba373ec20d9d2006306a98f4
2015-06-16 22:14:02 +03:00
Siebrand Mazeland
03b2b42084 Make languages/classes pass phpcs-strict
Change-Id: I0985f3c7e4b36338c68a4a63cfba4eaa4af567c0
2014-04-22 14:13:02 +02:00
umherirrender
55e8a9abfd Fixed some @params documentation (languages)
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.

Change-Id: I7a4dec6a8de96ee21ef34e52bb755f723aa3b0e6
2014-04-17 13:32:54 +00:00
umherirrender
3c7bcf4658 Fixed spacing in languages folder
Added spaces before if
Added some braces for one line statements

Change-Id: I980771894369499646532b13b801db6447381773
2013-04-17 21:10:02 +02:00
daniel
2679bd942c Merge branch 'master' of ssh://gerrit.wikimedia.org:29418/mediawiki/core into Wikidata 2012-06-07 16:36:58 +02:00
Alexandre Emsenhuber
32eaef76b4 Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: I7144b26103ef644fbec751ea476760566757cae3
2012-06-06 22:44:55 +02:00
jeblad
58912f8148 fixed from one error to another, clumsy me.. 2012-05-12 23:08:56 +02:00
jeblad
ed68864ecd Minor spelling correction 2012-05-12 21:04:51 +02:00
Sam Reed
b6b807b2bc More documentation! 2011-05-29 16:32:05 +00:00
Niklas Laxström
158dc1b3cd Fix bug that caused "Non-string key given" exception.
Broken since introducsed in r10810 almost six years ago.
This proves that the exception in message caches is valid and covers errors.
Tested that exception is no longer thrown.
2011-02-26 08:19:21 +00:00
Sam Reed
e476b51e3a Stylize languages/*, languages/classes/*, but not languages/messages/* 2010-07-29 09:43:18 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Siebrand Mazeland
555019a2c6 remove EOL whitespace, and excess empty lines 2008-05-17 17:10:18 +00:00
Niklas Laxström
e775522bd4 * (bug 13435) Number grouping 2008-04-06 17:39:13 +00:00
Rotem Liss
d51c7cdace (bug 5387) Block log items on RecentChanges don't make use of possible translations:
* Removing span from Language::translateBlockExpiry.
* Adding span conditionally in LogPage::actionText, and using appropriate language (interface and content).
* Removing translate parameter from LogPage::actionText: no longer needed, always translate.
2007-09-10 01:53:24 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Niklas Laxström
232789e96a * Some updates 2007-05-22 15:11:17 +00:00
Ilmari Karonen
c730349ca2 kluge to fix wovel harmony for "MediaWiki" (and other names with a "wiki" suffix) in LanguageFi::convertGrammar() 2007-02-10 22:03:31 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Ilmari Karonen
57ef3309e3 Make convertGrammar() slightly smarter (still pretty dumb), remove wikiquote
kluge.  NOTE: This will require setting $wgGrammarForms in LocalSettings.php
at fi.wikiquote as follows:

$wgGrammarForms['fi']['genitive']['Wikisitaatit'] = 'Wikisitaattien';
$wgGrammarForms['fi']['partitive']['Wikisitaatit'] = 'Wikisitaatteja';
$wgGrammarForms['fi']['elative']['Wikisitaatit'] = 'Wikisitaateista';
$wgGrammarForms['fi']['inessive']['Wikisitaatit'] = 'Wikisitaateissa';
$wgGrammarForms['fi']['illative']['Wikisitaatit'] = 'Wikisitaatteihin';
2006-12-17 23:44:40 +00:00
Tim Starling
157a8106ac Restructured the languages directory, to avoid problems when people untar MW 1.8 over the top of a 1.7 installation. 2006-10-04 01:39:28 +00:00
Renamed from languages/LanguageFi.php (Browse further)