Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 5377aea

Browse files
committed
Merge branch 'master' of github.com:welltime/phpagi into feature/composer-support
2 parents 2fec749 + 99c2d5d commit 5377aea

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/phpagi-asmanager.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,19 @@ class AGI_AsteriskManager
9797
* @var boolean
9898
*/
9999
private $_logged_in = FALSE;
100+
101+
public function setPagi(&$agi)
102+
{
103+
$this->pagi = $agi;
104+
}
100105

101106
/**
102107
* Constructor
103108
*
104109
* @param string $config is the name of the config file to parse or a parent agi from which to read the config
105110
* @param array $optconfig is an array of configuration vars and vals, stuffed into $this->config['asmanager']
106111
*/
107-
function AGI_AsteriskManager($config=NULL, $optconfig=array())
112+
function __construct($config=NULL, $optconfig=array())
108113
{
109114
// load config
110115
if(!is_null($config) && file_exists($config))

src/phpagi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ function say_punctuation($text, $escape_digits='', $frequency=8000)
15501550
function &new_AsteriskManager()
15511551
{
15521552
$this->asm = new AGI_AsteriskManager(NULL, $this->config['asmanager']);
1553-
$this->asm->pagi =& $this;
1553+
$this->asm->setPagi($this);
15541554
$this->config['asmanager'] =& $this->asm->config['asmanager'];
15551555
return $this->asm;
15561556
}

0 commit comments

Comments
 (0)