Changeset 10293

Show
Ignore:
Timestamp:
09/16/10 05:47:11 (3 years ago)
Author:
mbrevda
Message:

closes #4447 - Undefined function when installing freepbx

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/upgrades/2.8.0rc1/custom-context.php

    r10122 r10293  
    1414global $db; 
    1515global $amp_conf; 
     16 
     17//this must go first so that we dont attempt to redefine the functions below 
     18if (!function_exists('modules_getversion')) { 
     19  $file = dirname(__FILE__).'/../../amp_conf/htdocs/admin/functions.inc.php'; 
     20  if(file_exists($file)) { 
     21    include_once($file); 
     22  } else { 
     23    die('Fatal: Function modules_getversion() cannot be defined'); 
     24  } 
     25} 
    1626 
    1727if (! function_exists("out")) {