mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Backed out changeset: bf5145fe8ce2
--HG-- branch : 1.x
This commit is contained in:
@@ -43,11 +43,7 @@ namespace Orchard.Core.Settings.Services {
|
|||||||
return site.Id;
|
return site.Id;
|
||||||
});
|
});
|
||||||
|
|
||||||
return _contentManager.Query<SiteSettingsPart, SiteSettingsPartRecord>(VersionOptions.Published)
|
return _contentManager.Get<ISite>(siteId, VersionOptions.Published, new QueryHints().ExpandRecords<SiteSettingsPartRecord>());
|
||||||
.WithQueryHintsFor("Site")
|
|
||||||
.Where(s => s.Id == siteId)
|
|
||||||
.List()
|
|
||||||
.First();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user