Last modified: 2013-11-12 10:41:18 UTC
Language#formatExpiry needs database connection (to get the value of infinity string – `$infinity = wfGetDB( DB_SLAVE )->getInfinity();`). It should not. After this is fixed, the FIXME added in https://gerrit.wikimedia.org/r/#/c/80663/ should be removed.
Why is this classified as an i18n issue? AFAICT getInfinity() was implemented in the Database class for some reason. includes/db/Database.php, Class Database, ~line 3800: /** * Find out when 'infinity' is. Most DBMSes support this. This is a special * keyword for timestamps in PostgreSQL, and works with CHAR(14) as well * because "i" sorts after all numbers. * * @return String */ public function getInfinity() { return 'infinity'; }
Feel free to change the component if you think it's incorrect, I18n felt appropriate as this is an issue with (among others) the Language class.