From 393f3041ddf2f7080c3da5f96c55ae83cbea6043 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 23 Jan 2009 20:13:39 +0000 Subject: [PATCH] * Fix E_STRICT * Fix doxygen warnings --- includes/parser/DateFormatter.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/parser/DateFormatter.php b/includes/parser/DateFormatter.php index 9ef11d5e35..a699ef7098 100644 --- a/includes/parser/DateFormatter.php +++ b/includes/parser/DateFormatter.php @@ -96,9 +96,11 @@ class DateFormatter } /** - * @static + * Get a DateFormatter object + * + * @return DateFormatter object */ - function &getInstance() { + public static function &getInstance() { global $wgMemc; static $dateFormatter = false; if ( !$dateFormatter ) { @@ -112,8 +114,8 @@ class DateFormatter } /** - * @param string $preference User preference - * @param string $text Text to reformat + * @param $preference String: User preference + * @param $text String: Text to reformat */ function reformat( $preference, $text ) { if ( isset( $this->preferences[$preference] ) ) { -- 2.20.1