mod/missions/actions/missions/post-mission-first-form.php 1 location
|
@@ 29-35 (lines=7) @@
|
| 26 |
|
|
| 27 |
|
// If there is an error message it will be posted on the same page that will be reloaded |
| 28 |
|
// If not then the next page will be loaded |
| 29 |
|
if ($err == '') { |
| 30 |
|
$_SESSION['missions_pass_department_to_second_form'] = mo_get_last_input_node($first_form); |
| 31 |
|
forward(elgg_get_site_url() . 'missions/mission-post/step-two'); |
| 32 |
|
} else { |
| 33 |
|
register_error($err); |
| 34 |
|
forward(REFERER); |
| 35 |
|
} |
mod/wet4/actions/widgets/delete.php 1 location
|
@@ 20-25 (lines=6) @@
|
| 17 |
|
elgg_set_page_owner_guid($layout_owner_guid); |
| 18 |
|
if (elgg_can_edit_widget_layout($widget->context) && $widget->delete()) { |
| 19 |
|
$context = get_input('context'); |
| 20 |
|
if(elgg_instanceof(get_entity($context), 'group')){ |
| 21 |
|
forward(REFERER); |
| 22 |
|
} else { |
| 23 |
|
$url = elgg_get_site_url(); |
| 24 |
|
forward($url . 'profile/'.$owner.'?pg=splashboard'); |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
mod/gc_mobile_api/models/opportunity.php 1 location
|
@@ 689-694 (lines=6) @@
|
| 686 |
|
|
| 687 |
|
// Error checking function. |
| 688 |
|
$err .= mm_first_post_error_check($first_form); |
| 689 |
|
if ($err == '') { |
| 690 |
|
$_SESSION['missions_pass_department_to_second_form'] = mo_get_last_input_node($first_form); |
| 691 |
|
forward(elgg_get_site_url() . 'missions/mission-post/step-two'); |
| 692 |
|
} else { |
| 693 |
|
error_log('error in first form: '.$err); |
| 694 |
|
} |
| 695 |
|
|
| 696 |
|
|
| 697 |
|
return $formData["name"]; |