Respect the translation argument of mysql2date again. Fixes #9035 and #8989.

git-svn-id: http://svn.automattic.com/wordpress/trunk@10504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-02-04 21:45:55 +00:00
parent 85e1fa1d99
commit 09f0789e08
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) {
if( 'U' == $dateformatstring )
return $i;
return date_i18n( $dateformatstring, $i );
if ( $translate)
return date_i18n( $dateformatstring, $i );
else
return date( $dateformatstring, $i );
}
/**