|
@@ 3965-3971 (lines=7) @@
|
| 3962 |
|
|
| 3963 |
|
//get type assignment icon |
| 3964 |
|
$ShowAssignment = ''; |
| 3965 |
|
if ($row['assignment'] == 1) { |
| 3966 |
|
$ShowAssignment = Display::return_icon('wiki_assignment.png', get_lang('AssignmentDesc'), '', ICON_SIZE_SMALL); |
| 3967 |
|
} elseif ($row['assignment'] == 2) { |
| 3968 |
|
$ShowAssignment = Display::return_icon('wiki_work.png', get_lang('AssignmentWork'), '', ICON_SIZE_SMALL); |
| 3969 |
|
} elseif ($row['assignment'] == 0) { |
| 3970 |
|
$ShowAssignment = Display::return_icon('px_transparent.gif'); |
| 3971 |
|
} |
| 3972 |
|
|
| 3973 |
|
//fix Title to reflink (link Main Page) |
| 3974 |
|
if ($page == get_lang('DefaultTitle')) { |
|
@@ 4617-4623 (lines=7) @@
|
| 4614 |
|
while ($row = Database::fetch_array($allpages)) { |
| 4615 |
|
$orphaned_title = $row['title']; |
| 4616 |
|
$orphaned_visibility = $row['visibility']; |
| 4617 |
|
if ($row['assignment'] == 1) { |
| 4618 |
|
$ShowAssignment = Display::return_icon('wiki_assignment.png', '', '', ICON_SIZE_SMALL); |
| 4619 |
|
} elseif ($row['assignment'] == 2) { |
| 4620 |
|
$ShowAssignment = Display::return_icon('wiki_work.png', '', '', ICON_SIZE_SMALL); |
| 4621 |
|
} elseif ($row['assignment'] == 0) { |
| 4622 |
|
$ShowAssignment = Display::return_icon('px_transparent.gif'); |
| 4623 |
|
} |
| 4624 |
|
} |
| 4625 |
|
|
| 4626 |
|
if (!api_is_allowed_to_edit(false, true) || !api_is_platform_admin() && $orphaned_visibility == 0) { |