- Timestamp:
- 02/17/12 16:57:04 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/directory/agi-bin/directory.agi
r12726 r13467 4 4 $loopcounter1=$loopcounter2=0; 5 5 $matches=false; 6 $search=array( );6 $search=array('result' => ''); 7 7 $dir=new Dir(); 8 8 $matches = false; … … 22 22 if ($needs_welcome) { 23 23 $needs_welcome = false; 24 $search = $dir->agi->fastpass_get_data($buffer, 'cdir-welcome',100,3); 24 if ($dir->default_annoucement()) { 25 $search = $dir->agi->fastpass_get_data($buffer, 'cdir-welcome',100,3); 26 } 25 27 if ((strlen($buffer) < 3) && (strstr($search['result'],'0') === false)) { 26 28 $search = $dir->agi->fastpass_get_data($buffer, $dir->dir['announcement'],3000,3); modules/branches/2.10/directory/agi-bin/directory.lib.php
r13160 r13467 20 20 //TODO: what is this var for? 21 21 var $vmbasedir=''; 22 23 // determine if annoucement is default so we can choose whether or not to play the 24 // "welcome-to-the-directory" recording 25 var $default_annoucement = false; 22 26 23 27 //PHP4 comaptibility constructor … … 95 99 //TODO: Error Checking 96 100 101 $this->default_annoucement = $row['announcement'] === '0' ? true : false; 102 97 103 //If any non-defaults (non-zero id) then lookup files 98 104 // … … 115 121 $row['invalid_recording'] = $row['invalid_recording']&&isset($rec_file[$row['invalid_recording']])?$rec_file[$row['invalid_recording']]:'cdir-transferring-further-assistance'; 116 122 return $row; 123 } 124 125 function default_annoucement() { 126 return $this->default_annoucement; 117 127 } 118 128
