diff --git a/Superfecta.class.php b/Superfecta.class.php index 9caa5802..9dc0bf5a 100644 --- a/Superfecta.class.php +++ b/Superfecta.class.php @@ -189,7 +189,9 @@ public function execute($scheme='ALL', $request=[], $debug=0, $keepGoing=false) //if a prefix lookup is enabled, look it up, and truncate the result to 10 characters ///Clean these up, set NULL values instead of blanks then don't check for '' $superfecta->set_Prefix(''); - if ((isset($scheme_param['Prefix_URL'])) && (trim($scheme_param['Prefix_URL']) != '')) { + if ((isset($options['scheme_settings']['Prefix_URL'])) && (trim($options['scheme_settings']['Prefix_URL'])) != '') { + + $start_time = $superfecta->mctime_float(); $superfecta->set_Prefix($superfecta->get_url_contents(str_replace("[thenumber]", $cnum, $options['scheme_settings']['Prefix_URL']))); @@ -199,7 +201,7 @@ public function execute($scheme='ALL', $request=[], $debug=0, $keepGoing=false) } else { $this->out(_("Prefix Url defined but result was empty")); } - $this->out(sprintf(_("Prefix Url result took %s seconds."),number_format((mctime_float() - $start_time), 4))); + $this->out(sprintf(_("Prefix Url result took %s seconds."),number_format(($superfecta->mctime_float() - $start_time), 4))); } $trunk_info['callerid'] = $cnum; @@ -866,4 +868,4 @@ public function didList($id = false){ $results = $stmt->fetchAll(PDO::FETCH_ASSOC); return is_array($results) ? $results : array(); } -} \ No newline at end of file +} diff --git a/includes/superfecta_base.php b/includes/superfecta_base.php index 3027ed8c..672293b4 100644 --- a/includes/superfecta_base.php +++ b/includes/superfecta_base.php @@ -17,7 +17,7 @@ class superfecta_base { protected $caller_id = ''; protected $charsetIA5 = true; protected $first_caller_id = ''; - protected $prefix = ''; + public $prefix = ''; protected $spam_text = ''; protected $cache_found = false; protected $single_source = false;