Show absolute block expiry in user timezone on block logs
[lhc/web/wiklou.git] / languages / classes / LanguageFi.php
index bf09252..867a2f6 100644 (file)
@@ -85,10 +85,10 @@ class LanguageFi extends Language {
 
        /**
         * @param string $str
-        * @param bool $forContent
+        * @param User $user User object to use timezone from or null for $wgUser
         * @return string
         */
-       function translateBlockExpiry( $str, $forContent = false ) {
+       function translateBlockExpiry( $str, User $user = null ) {
                /*
                        'ago', 'now', 'today', 'this', 'next',
                        'first', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'ninth',
@@ -102,7 +102,7 @@ class LanguageFi extends Language {
                                'jul:heinäkuu,aug:elokuu,sep:syyskuu,oct:lokakuu,nov:marraskuu,' .
                                dec:joulukuu,sept:syyskuu';
                */
-               $weekds = array(
+               $weekds = [
                        'monday' => 'maanantai',
                        'tuesday' => 'tiistai',
                        'wednesday' => 'keskiviikko',
@@ -146,7 +146,7 @@ class LanguageFi extends Language {
                        'year' => 'vuosi',
                        'infinite' => 'ikuisesti',
                        'indefinite' => 'ikuisesti'
-               );
+               ];
 
                $final = '';
                $tokens = explode( ' ', $str );