Ticket #5081: extensions.class.php.27.patch

File extensions.class.php.27.patch, 0.8 kB (added by pwalker, 2 years ago)

Updated Patch for FreePBX 2.7

  • extensions.class.php

    old new  
    197197      } 
    198198      $priority = ($new_priority === false) ? $count : $existing_priority; 
    199199    } 
     200    else { 
     201      $priority -= 1; 
     202    } 
    200203    $newcommand = array( 
    201204      'basetag' => $this->_exts[$section][$extension][$priority]['basetag'], 
    202205      'tag' => $this->_exts[$section][$extension][$priority]['tag'], 
     
    232235      } 
    233236      $priority = ($existing_priority === false) ? false : $existing_priority; 
    234237    } 
    235     if($priority != false){ 
     238    else { 
     239      $priority -= 1; 
     240    } 
     241    if($priority !== false){ 
    236242      unset($this->_exts[$section][$extension][$priority]); 
    237243      $this->_exts[$section][$extension]=array_values($this->_exts[$section][$extension]); 
    238244    }