Changeset 4665
- Timestamp:
- 08/03/07 15:10:27 (1 year ago)
- Files:
-
- modules/branches/2.3/core/functions.inc.php (modified) (4 diffs)
- modules/branches/2.3/core/module.xml (modified) (1 diff)
- modules/branches/2.3/core/page.trunks.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/core/functions.inc.php
r4656 r4665 1368 1368 $astman->database_put("AMPUSER",$extension."/cidnum",$cid_masquerade); 1369 1369 $astman->database_put("AMPUSER",$extension."/voicemail","\"".isset($voicemail)?$voicemail:''."\""); 1370 $astman->database_put("AMPUSER",$extension."/device","\"". isset($device)?$device:''."\"");1370 $astman->database_put("AMPUSER",$extension."/device","\"".((isset($device))?$device:'')."\""); 1371 1371 1372 1372 if (trim($callwaiting) == 'enabled') { … … 1816 1816 1817 1817 function core_trunks_readDialRulesFile() { 1818 global $localPrefixFile; // probably not the best way 1818 global $amp_conf; 1819 $localPrefixFile = $amp_conf['ASTETCDIR']."/localprefixes.conf"; 1819 1820 1820 1821 core_trunks_parse_conf($localPrefixFile, $conf, $section); … … 1824 1825 1825 1826 function core_trunks_writeDialRulesFile($conf) { 1826 global $localPrefixFile; // probably not the best way 1827 global $amp_conf; 1828 $localPrefixFile = $amp_conf['ASTETCDIR']."/localprefixes.conf"; 1827 1829 1828 1830 $fd = fopen($localPrefixFile,"w"); … … 2828 2830 core_users_del($extdisplay); 2829 2831 core_users_cleanastdb($extdisplay); 2830 if (function_exists( findmefollow_del)) {2832 if (function_exists('findmefollow_del')) { 2831 2833 findmefollow_del($extdisplay); 2832 2834 } modules/branches/2.3/core/module.xml
r4657 r4665 4 4 <category>Basic</category> 5 5 <name>Core</name> 6 <version>2.3.0beta2.3. 2</version>6 <version>2.3.0beta2.3.3</version> 7 7 <candisable>no</candisable> 8 8 <canuninstall>no</canuninstall> 9 9 <changelog> 10 *2.3.0beta2.3.3* fixed some uninitialized variables, #2210 trunk dialpatterns not being retrieved in gui 10 11 *2.3.0beta2.3.2* #2151 fix trunk ordering when more than 9 trunks used, and some unitialized vars 11 12 *2.3.0beta2.3.1* #2199 fix ENABLECW behavior on new extensions modules/branches/2.3/core/page.trunks.php
r4656 r4665 13 13 //GNU General Public License for more details. 14 14 15 $localPrefixFile = rtrim($amp_conf['ASTETCDIR'],DIRECTORY_SEPARATOR)."/localprefixes.conf";16 15 17 16 … … 65 64 $dialrules = array_values(array_unique($dialrules)); 66 65 } else { 67 $dialrules = '';66 $dialrules = array(); 68 67 } 69 68 … … 260 259 } 261 260 262 /* //DIALRULES263 if (!isset($_REQUEST["dialrules"])) { // we check REQUEST because dialrules() is always an array264 $dialrules = getTrunkDialRules($trunknum);265 }266 */267 if (!isset($dialrules)) { $dialrules = null; }268 if (!isset($dialrules)) { $dialrules = null; }269 270 271 261 if (count($dialrules) == 0) { 272 262 if ($temp = core_trunks_getDialRules($trunknum)) {
