Changeset 5365
- Timestamp:
- 12/06/07 14:01:25 (1 year ago)
- Files:
-
- modules/branches/2.4/core/functions.inc.php (modified) (2 diffs)
- modules/branches/2.4/dictate/functions.inc.php (modified) (1 diff)
- modules/branches/2.4/languages/functions.inc.php (modified) (1 diff)
- modules/branches/2.4/voicemail/functions.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4/core/functions.inc.php
r5364 r5365 3305 3305 3306 3306 if ( is_string($extdisplay) ) { 3307 $extenInfo=core_users_get($extdisplay); 3308 extract($extenInfo); 3307 3308 if (!isset($GLOBALS['abort']) || $GLOBALS['abort'] !== true) { 3309 $extenInfo=core_users_get($extdisplay); 3310 extract($extenInfo); 3311 } 3309 3312 if (isset($deviceInfo) && is_array($deviceInfo)) 3310 3313 extract($deviceInfo); … … 3443 3446 } else { 3444 3447 // really bad hack - but if core_users_add fails, want to stop core_devices_add 3448 // Comment, this does not help everywhere. Other hooks functions can hook before 3449 // this like voicemail! 3450 // 3445 3451 $GLOBALS['abort'] = true; 3446 3452 } modules/branches/2.4/dictate/functions.inc.php
r5339 r5365 84 84 if ($tech_hardware != null || $pagename == 'users') { 85 85 dictation_applyhooks(); 86 $currentcomponent->addprocessfunc('dictate_configprocess', 5);86 $currentcomponent->addprocessfunc('dictate_configprocess', 8); 87 87 } elseif ($action=="add") { 88 88 // We don't need to display anything on an 'add', but we do need to handle returned data. 89 $currentcomponent->addprocessfunc('dictate_configprocess', 5);89 $currentcomponent->addprocessfunc('dictate_configprocess', 8); 90 90 } elseif ($extdisplay != '') { 91 91 // We're now viewing an extension, so we need to display _and_ process. 92 92 dictation_applyhooks(); 93 $currentcomponent->addprocessfunc('dictate_configprocess', 5);93 $currentcomponent->addprocessfunc('dictate_configprocess', 8); 94 94 } 95 95 } modules/branches/2.4/languages/functions.inc.php
r5339 r5365 118 118 if ($tech_hardware != null || $pagename == 'users') { 119 119 language_applyhooks(); 120 $currentcomponent->addprocessfunc('languages_configprocess', 5);120 $currentcomponent->addprocessfunc('languages_configprocess', 8); 121 121 } elseif ($action=="add") { 122 122 // We don't need to display anything on an 'add', but we do need to handle returned data. 123 $currentcomponent->addprocessfunc('languages_configprocess', 5);123 $currentcomponent->addprocessfunc('languages_configprocess', 8); 124 124 } elseif ($extdisplay != '') { 125 125 // We're now viewing an extension, so we need to display _and_ process. 126 126 language_applyhooks(); 127 $currentcomponent->addprocessfunc('languages_configprocess', 5);127 $currentcomponent->addprocessfunc('languages_configprocess', 8); 128 128 } 129 129 } modules/branches/2.4/voicemail/functions.inc.php
r5339 r5365 236 236 case "add": 237 237 if (!isset($GLOBALS['abort']) || $GLOBALS['abort'] !== true) { 238 voicemail_mailbox_add($extdisplay, $_REQUEST); 239 needreload(); 238 $usage_arr = framework_check_extension_usage($_REQUEST['extension']); 239 if (!empty($usage_arr)) { 240 $GLOBALS['abort'] = true; 241 } else { 242 voicemail_mailbox_add($extdisplay, $_REQUEST); 243 needreload(); 244 } 240 245 } 241 246 break;
