in AssetHelpers, store the actual text passed in to the method, not the string "data"

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-10-22 00:45:47 +01:00
parent b2ff680cca
commit dd6c236253
1 changed files with 2 additions and 2 deletions

View File

@ -129,10 +129,10 @@ namespace OpenSim.Tests.Common
/// <summary> /// <summary>
/// Create an asset from the given data. /// Create an asset from the given data.
/// </summary> /// </summary>
public static AssetBase CreateAsset(UUID assetUuid, AssetType assetType, string data, UUID creatorID) public static AssetBase CreateAsset(UUID assetUuid, AssetType assetType, string text, UUID creatorID)
{ {
AssetNotecard anc = new AssetNotecard(); AssetNotecard anc = new AssetNotecard();
anc.BodyText = "data"; anc.BodyText = text;
anc.Encode(); anc.Encode();
return CreateAsset(assetUuid, assetType, anc.AssetData, creatorID); return CreateAsset(assetUuid, assetType, anc.AssetData, creatorID);