X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles_versions%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=blobdiff_plain;f=includes%2FTimestamp.php;h=630ac5357feebcb23d05623d2ba9b1fc6f007f5f;hb=843b5d9eda840ea0f63d2c03d3ee95fbac33d75b;hp=56ce46c1ac3a832b3a6f87801a65fb11ac988dea;hpb=2759e2a5efc1df364424caa4cc27f281a9a63662;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Timestamp.php b/includes/Timestamp.php index 56ce46c1ac..630ac5357f 100644 --- a/includes/Timestamp.php +++ b/includes/Timestamp.php @@ -54,7 +54,9 @@ class MWTimestamp { "seconds" => 1000, // 1000 milliseconds per second "minutes" => 60, // 60 seconds per minute "hours" => 60, // 60 minutes per hour - "days" => 24 // 24 hours per day + "days" => 24, // 24 hours per day + "months" => 30, // approximately 30 days per month + "years" => 12, // 12 months per year ); /** @@ -216,7 +218,7 @@ class MWTimestamp { if( $message ) { $initial = call_user_func_array( 'wfMessage', $message ); - return wfMessage( 'ago', $initial ); + return wfMessage( 'ago', $initial->parse() ); } else { return wfMessage( 'just-now' ); }