Fix 'Only variable references should be returned by reference' notices

git-svn-id: http://svn.automattic.com/wordpress/trunk@11083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-24 23:43:32 +00:00
parent 515487d39c
commit a8513a8a37

View File

@ -342,10 +342,13 @@ function load_theme_textdomain($domain, $path = false) {
* @param string $domain
* @return object A Translation instance
*/
function get_translations_for_domain( $domain ) {
function &get_translations_for_domain( $domain ) {
global $l10n;
$empty = &new Translations;
return isset($l10n[$domain])? $l10n[$domain] : $empty;
if ( isset($l10n[$domain]) )
return $l10n[$domain];
else
return $empty;
}
/**