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

git-svn-id: https://develop.svn.wordpress.org/trunk@11083 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-24 23:43:32 +00:00
parent d77d35e502
commit 273df5a466
1 changed files with 5 additions and 2 deletions

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;
}
/**