Changeset 1671 for trunk/workflow/inc/local
- Timestamp:
- 11/18/09 15:14:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/local/functions/function.wf_get_activity_link_by_id.php
r795 r1671 5 5 * @return string url para a atividade passada como parametro 6 6 * @license http://www.gnu.org/copyleft/gpl.html GPL 7 * @package Workflow 8 * @subpackage local 7 * @package Workflow 8 * @subpackage local 9 9 * @access public 10 10 * @author Alessandra Heil … … 13 13 { 14 14 /* load some variables */ 15 $instance =& $GLOBALS['workflow']['wf_runtime'];16 17 $currentActivity = $instance->activity_id;18 $instanceId = $instance->instance_id;19 15 $urlBase = $_SERVER['SERVER_NAME']; 20 21 if (isset($currentActivity) && ($instanceId != 0)) 22 $output = "http://".$urlBase."/index.php?menuaction=workflow.run_activity.go&activity_id=$activityId"; 23 else 24 $output = "http://".$urlBase."/workflow/index.php?start_tab=0"; 25 16 17 $output = "http://".$urlBase."/index.php?menuaction=workflow.run_activity.go&activity_id=$activityId"; 18 26 19 return $output ; 27 20 }
Note: See TracChangeset
for help on using the changeset viewer.