* Fix E_STRICT
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 23 Jan 2009 20:13:39 +0000 (20:13 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 23 Jan 2009 20:13:39 +0000 (20:13 +0000)
* Fix doxygen warnings

includes/parser/DateFormatter.php

index 9ef11d5..a699ef7 100644 (file)
@@ -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] ) ) {