Skip to content

Commit

Permalink
Merge branch 'bugfix/FREEPBX-11857' of ssh://git.freepbx.org/freepbx/…
Browse files Browse the repository at this point in the history
…superfecta into release/13.0
  • Loading branch information
tm1000 committed Apr 4, 2016
2 parents 658c122 + 4263b70 commit 482f972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Superfecta.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ public function execute($scheme='ALL', $request, $debug=0, $keepGoing=false) {
//Set Spam text
$spam_text = ($superfecta->isSpam()) ? $options['scheme_settings']['SPAM_Text'] : '';
if($superfecta->isSpam() && $options['scheme_settings']['SPAM_Text_Substitute'] == 'Y') {
dbug($options['scheme_settings']);
$callerid = $spam_text;
} else {
$callerid = $spam_text . " " . $superfecta->get_Prefix() . $callerid;
Expand Down Expand Up @@ -461,7 +460,6 @@ public function ajaxHandler() {

$scheme = $_REQUEST['scheme'];
$source = $_REQUEST['source'];

$sql = "REPLACE INTO superfectaconfig (source,field,value) VALUES (?, ?, ?)";
$sth = $this->db->prepare($sql);
foreach($params as $key => $data) {
Expand Down Expand Up @@ -533,6 +531,9 @@ public function ajaxHandler() {
$form_html .= '<label for="'.$key.'">'.str_replace("_", " ", $key).'</label><a class="info"><span>'.$data['description'].'</span></a>';
$form_html .= '<input type="number" class="form-control" name="'.$key.'" id="'.$key.'" value="'.$value.'" /></td>';
break;
case "info":
$form_html .= $default;
break;
case "select":
$value = isset($n_settings[$key]) ? $n_settings[$key] : $default;
$form_html .= '<label for="'.$key.'">'.str_replace("_", " ", $key).'</label><a class="info"><span>'.$data['description'].'</span></a>';
Expand Down
2 changes: 1 addition & 1 deletion sources/source-GooglePlaces.module
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class GooglePlaces extends superfecta_base {
'Privacy_Policy' => array (
'description' => _('Google Maps API requires this module provide the this privacy policy'),
'type' => 'info',
'default' => '<textarea readonly cols="40" rows="5">Privacy Policy and Terms of Use:
'default' => '<input type = "hidden" name="Privacy_Policy" value=""><textarea readonly cols="40" name = "Google_Agreements" rows="5">Privacy Policy and Terms of Use:
To comply with the Google Maps TOS,
this module must have a privacy policy
and terms of use. This is the privacy
Expand Down

0 comments on commit 482f972

Please sign in to comment.