mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:19:06 +01:00
21 lines
627 B
PHP
21 lines
627 B
PHP
<?php
|
|
//Code to be executed before a split activity
|
|
// If we didn't retrieve the instance before
|
|
if(empty($instance->instanceId)) {
|
|
// This activity needs an instance to be passed to
|
|
// be started, so get the instance into $instance.
|
|
if(isset($_REQUEST['iid'])) {
|
|
$instance->getInstance($_REQUEST['iid']);
|
|
} else {
|
|
// defined in lib/Galaxia/config.php
|
|
galaxia_show_error("No instance indicated");
|
|
die;
|
|
}
|
|
}
|
|
// Set the current user for this activity
|
|
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
|
$instance->setActivityUser($activity->activityId,$user);
|
|
}
|
|
|
|
?>
|