Follow-up r91770: only translate when possible
authorRobin Pepermans <robin@users.mediawiki.org>
Sat, 9 Jul 2011 12:54:42 +0000 (12:54 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Sat, 9 Jul 2011 12:54:42 +0000 (12:54 +0000)
languages/Language.php

index 4ed2465..55a2ee7 100644 (file)
@@ -3018,7 +3018,7 @@ class Language {
                        }
                }
                // If no duration is given, but a timestamp, display that
-               return $this->timeanddate( $str );
+               return ( strtotime( $str ) ? $this->timeanddate( strtotime( $str ) ) : $str );
        }
 
        /**