|
@@ 118-120 (lines=3) @@
|
| 115 |
|
} |
| 116 |
|
// Using bitwise AND as Legacy Stack stores COMMON, LINK and EMBED relation types |
| 117 |
|
// in the same entry using bitmask |
| 118 |
|
if ($relation->type & Relation::LINK) { |
| 119 |
|
$mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation; |
| 120 |
|
} |
| 121 |
|
if ($relation->type & Relation::EMBED) { |
| 122 |
|
$mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation; |
| 123 |
|
} |
|
@@ 121-123 (lines=3) @@
|
| 118 |
|
if ($relation->type & Relation::LINK) { |
| 119 |
|
$mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation; |
| 120 |
|
} |
| 121 |
|
if ($relation->type & Relation::EMBED) { |
| 122 |
|
$mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation; |
| 123 |
|
} |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
// Add new relations |