Avoid calling formatStringByName with no formats b=379889 r=smontagu sr=biesi

git-svn-id: svn://10.0.0.236/trunk@226176 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2007-05-09 08:40:41 +00:00
parent db71ed7fea
commit 2b707fec22

View File

@@ -840,7 +840,8 @@ nsProgressDialog.prototype = {
.getService( Components.interfaces.nsIStringBundleService )
.createBundle( "chrome://global/locale/nsProgressDialog.properties");
}
return this.mBundle.formatStringFromName( propertyId, strings, len );
return len ? this.mBundle.formatStringFromName( propertyId, strings, len )
: this.mBundle.getStringFromName( propertyId );
},
// Get localizable string (from dialog <data> elements).