Commit dec83ea0 authored by Simonas's avatar Simonas

slash added to URLSegmentFull

parent 4eff05b3
...@@ -776,7 +776,7 @@ function setPages ( $domain, $path ) { ...@@ -776,7 +776,7 @@ function setPages ( $domain, $path ) {
ParentID as parentID, ParentID as parentID,
CASE WHEN (ParentID > 0) THEN (select URLSegment from `SiteTree_Live` WHERE ID = a.ParentID) ELSE '' END AS URLSegmentParent, CASE WHEN (ParentID > 0) THEN (select URLSegment from `SiteTree_Live` WHERE ID = a.ParentID) ELSE '' END AS URLSegmentParent,
CASE WHEN (ParentID > 0) THEN CONCAT('/', (select URLSegment from `SiteTree_Live` WHERE ID = a.ParentID), '/', URLSegment) ELSE CONCAT('/', URLSegment) END AS URLSegmentFull, CASE WHEN (ParentID > 0) THEN CONCAT('/', (select URLSegment from `SiteTree_Live` WHERE ID = a.ParentID), '/', URLSegment, '/') ELSE CONCAT('/', URLSegment, '/') END AS URLSegmentFull,
MenuTitle as menu FROM SiteTree_Live a ORDER BY parentID"); MenuTitle as menu FROM SiteTree_Live a ORDER BY parentID");
......
...@@ -776,7 +776,7 @@ function setPages ( $domain, $path ) { ...@@ -776,7 +776,7 @@ function setPages ( $domain, $path ) {
ParentID as parentID, ParentID as parentID,
CASE WHEN (ParentID > 0) THEN (select URLSegment from `SiteTree_Live` WHERE ID = a.ParentID) ELSE '' END AS URLSegmentParent, CASE WHEN (ParentID > 0) THEN (select URLSegment from `SiteTree_Live` WHERE ID = a.ParentID) ELSE '' END AS URLSegmentParent,
CASE WHEN (ParentID > 0) THEN CONCAT('/', (select URLSegment from `SiteTree_Live` WHERE ID = a.ParentID), '/', URLSegment) ELSE CONCAT('/', URLSegment) END AS URLSegmentFull, CASE WHEN (ParentID > 0) THEN CONCAT('/', (select URLSegment from `SiteTree_Live` WHERE ID = a.ParentID), '/', URLSegment, '/') ELSE CONCAT('/', URLSegment, '/') END AS URLSegmentFull,
MenuTitle as menu FROM SiteTree_Live a ORDER BY parentID"); MenuTitle as menu FROM SiteTree_Live a ORDER BY parentID");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment