|
@@ 131-133 (lines=3) @@
|
| 128 |
|
} |
| 129 |
|
// Using bitwise AND as Legacy Stack stores COMMON, LINK and EMBED relation types |
| 130 |
|
// in the same entry using bitmask |
| 131 |
|
if ($relation->type & Relation::LINK) { |
| 132 |
|
$mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation; |
| 133 |
|
} |
| 134 |
|
if ($relation->type & Relation::EMBED) { |
| 135 |
|
$mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation; |
| 136 |
|
} |
|
@@ 134-136 (lines=3) @@
|
| 131 |
|
if ($relation->type & Relation::LINK) { |
| 132 |
|
$mappedRelations[Relation::LINK][$relation->destinationContentInfo->id] = $relation; |
| 133 |
|
} |
| 134 |
|
if ($relation->type & Relation::EMBED) { |
| 135 |
|
$mappedRelations[Relation::EMBED][$relation->destinationContentInfo->id] = $relation; |
| 136 |
|
} |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
// Add new relations |