Changeset 8772 for freepbx

Show
Ignore:
Timestamp:
02/02/10 17:34:58 (3 years ago)
Author:
mickecarlsson
Message:

Close #4024 add check for Asterisk 1.6 in GotoIfTime? extensions class

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.7/amp_conf/htdocs/admin/extensions.class.php

    r8684 r8772  
    502502  var $condition; 
    503503  function ext_gotoiftime($condition, $true_priority) { 
     504      global $version; 
     505      if (version_compare($version, "1.6", "ge")) { 
     506    //change from '|' to ',' 
     507    $this->condition = str_replace("|", ",", $condition); 
     508        } 
     509    else { 
     510        $this->condition = $condition; 
     511        } 
    504512    $this->true_priority = $true_priority; 
    505     $this->condition = $condition; 
    506513  } 
    507514  function output() {