Skip to content

Commit aa75a6b

Browse files
author
perploug
committed
Merge branch '7.0.0' of https://github.com/umbraco/Umbraco-CMS into 7.0.0
2 parents 14a0efd + 1c20496 commit aa75a6b

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSeven/UpdateRelatedLinksData.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Threading.Tasks;
77
using System.Web.Script.Serialization;
88
using System.Xml;
9+
using Newtonsoft.Json;
910
using Umbraco.Core.Configuration;
1011
using Umbraco.Core.Logging;
1112
using Umbraco.Core.Models.Rdbms;
@@ -33,6 +34,8 @@ public static string UpdateRelatedLinksDataDo(Database database)
3334
{
3435
if (!string.IsNullOrEmpty(data.Text))
3536
{
37+
//var cs = ApplicationContext.Current.Services.ContentService;
38+
3639
//fetch the current data (that's in xml format)
3740
var xml = new XmlDocument();
3841
xml.LoadXml(data.Text);
@@ -58,11 +61,27 @@ public static string UpdateRelatedLinksDataDo(Database database)
5861
link.Add("edit", false);
5962
link.Add("isInternal", type.Equals("internal"));
6063

64+
//try
65+
//{
66+
// if (type.Equals("internal"))
67+
// {
68+
// int nodeId;
69+
// if (int.TryParse(lnk, out nodeId))
70+
// link.Add("internalName", cs.GetById(nodeId).Name);
71+
// }
72+
//}
73+
//catch (Exception ex)
74+
//{
75+
// LogHelper.Error<UpdateRelatedLinksData>("Exception was thrown when trying to update related links property data, fetching internal node id", ex);
76+
//}
77+
6178
links.Add((ExpandoObject) link);
6279
}
6380

6481
//store the serialized data
65-
data.Text = new JavaScriptSerializer().Serialize(links);
82+
data.Text = JsonConvert.SerializeObject(links);
83+
84+
database.Update(data);
6685
}
6786
}
6887
}

src/Umbraco.Web.UI/install/steps/StarterKits.ascx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878
<div class="tab main-tabinfo">
7979
<div class="container">
8080
<h1>Starter kits</h1>
81-
<p>To help you get started here are some basic starter kits. They have been tailored to suit common site configurations and install useful functionality.<br />
82-
Mouse over the icons to learn more about what the starter kits will install.</p>
81+
<p>To help you get started here are some basic starter kits. They have been tailored to suit common site configurations and install useful functionality.</p>
8382
</div>
8483
<!-- menu -->
8584
<asp:PlaceHolder ID="ph_starterKits" runat="server" />

src/Umbraco.Web.UI/install/steps/theend.ascx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,8 @@ jQuery(document).ready(function () {
2424
<!-- done box -->
2525
<div class="tab main-tabinfo">
2626
<div class="container">
27-
<h1>
28-
You’re done...now what?</h1>
29-
<p>
30-
Excellent, you are now ready to start using Umbraco, one of the worlds most popular open
31-
source .NET CMS.
32-
<br />
33-
If you installed a starter kit you can start by configuring your new site, just click &quot;Preview your new website&quot; and follow the instructions. Or to start adding content right away click &quot;Set up your new website&quot; </p>
27+
<h1>You’re done...now what?</h1>
28+
<p>Excellent, you are now ready to start using Umbraco, one of the worlds most popular open source .NET CMS.</p>
3429
<ul class="btn-web">
3530
<li class="btn-set"><a href="<%= IOHelper.ResolveUrl(SystemDirectories.Umbraco) %>/"><span>Launch umbraco</span></a></li>
3631
</ul>

0 commit comments

Comments
 (0)