engine/lib/comments.php 1 location
|
@@ 109-118 (lines=10) @@
|
106 |
|
}; |
107 |
|
|
108 |
|
$comment = get_entity($comment_guid); |
109 |
|
if (!$comment) { |
110 |
|
// try fallback if given |
111 |
|
$fallback = get_entity($fallback_guid); |
112 |
|
if (!$fallback) { |
113 |
|
$fail(); |
114 |
|
} |
115 |
|
|
116 |
|
register_error(elgg_echo('generic_comment:notfound_fallback')); |
117 |
|
forward($fallback->getURL()); |
118 |
|
} |
119 |
|
|
120 |
|
if (!elgg_instanceof($comment, 'object', 'comment')) { |
121 |
|
$fail(); |
mod/groups/start.php 1 location
|
@@ 865-874 (lines=10) @@
|
862 |
|
}; |
863 |
|
|
864 |
|
$reply = get_entity($reply_guid); |
865 |
|
if (!$reply) { |
866 |
|
// try fallback |
867 |
|
$fallback = get_entity($fallback_guid); |
868 |
|
if (!elgg_instanceof($fallback, 'object', 'groupforumtopic')) { |
869 |
|
$fail(); |
870 |
|
} |
871 |
|
|
872 |
|
register_error(elgg_echo('discussion:reply:error:notfound_fallback')); |
873 |
|
forward($fallback->getURL()); |
874 |
|
} |
875 |
|
|
876 |
|
if (!$reply instanceof ElggDiscussionReply) { |
877 |
|
$fail(); |