Changeset 3913

Show
Ignore:
Timestamp:
04/07/07 18:13:23 (6 years ago)
Author:
p_lindheimer
Message:

fix pseudo hardcoded path issue (hardcoded form missing global)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/parking/functions.inc.php

    r3911 r3913  
    1010  global $db; 
    1111  global $ext;  // is this the best way to pass this? 
     12  global $asterisk_conf; 
    1213  switch($engine) { 
    1314    case "asterisk": 
     
    3637    //AND GET THE ENV VARIABLES TO CALL THIS BY 
    3738 
    38     $filename = (isset($amp_conf["ASTETCDIR"]) ? $amp_conf["ASTETCDIR"] : "/etc/asterisk/") . "parking_additional.inc"; 
     39    $filename = isset($asterisk_conf["astetcdir"]) && $asterisk_conf["astetcdir"] != '' ? rtrim($asterisk_conf["astetcdir"],DIRECTORY_SEPARATOR) : "/etc/asterisk"; 
     40    $filename .= "/parking_additional.inc"; 
    3941    $fh = fopen($filename, "w+"); 
    4042    fwrite($fh, ";*** WARNING: DO NOT HAND EDIT THIS FILE IT IS AUTO-GENERATD ***\n;\n"); 
  • modules/branches/2.2/parking/module.xml

    r3911 r3913  
    22  <rawname>parking</rawname> 
    33  <name>Parking Lot</name> 
    4   <version>2.1</version> 
     4  <version>2.1.1</version> 
    55  <type>setup</type> 
    66  <category>Internal Options &amp; Configuration</category> 
     
    1212  </menuitems> 
    1313  <changelog> 
     14    *2.1.1* fix pseudo hardcoded path issue (hardcoded form missing global) 
    1415    *2.1* Remove settings on uninstall bug #1597 
    1516    *2.0.2* Add he_IL translation