diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
commit | 9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch) | |
tree | 46d1a0dee7febef5c2d57a9f7b972be16a163b3d /includes/parser/DateFormatter.php | |
parent | 78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff) |
update to MediaWiki 1.17.0
Diffstat (limited to 'includes/parser/DateFormatter.php')
-rw-r--r-- | includes/parser/DateFormatter.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/parser/DateFormatter.php b/includes/parser/DateFormatter.php index 602bcff3..cf510171 100644 --- a/includes/parser/DateFormatter.php +++ b/includes/parser/DateFormatter.php @@ -1,4 +1,9 @@ <?php +/** + * Date formatter + * + * @file + */ /** * Date formatter, recognises dates in plain text and formats them accoding to user preferences. @@ -29,7 +34,7 @@ class DateFormatter /** * @todo document */ - function DateFormatter() { + function __construct() { global $wgContLang; $this->monthNames = $this->getMonthRegex(); @@ -116,6 +121,7 @@ class DateFormatter /** * @param $preference String: User preference * @param $text String: Text to reformat + * @param $options Array: can contain 'linked' and/or 'match-whole' */ function reformat( $preference, $text, $options = array('linked') ) { @@ -265,7 +271,7 @@ class DateFormatter $isoBits[] = $bits['y']; $isoBits[] = $bits['m']; $isoBits[] = $bits['d']; - $isoDate = implode( '-', $isoBits );; + $isoDate = implode( '-', $isoBits ); // Output is not strictly HTML (it's wikitext), but <span> is whitelisted. $text = Html::rawElement( 'span', |