Skip to content

Commit f7a1c87

Browse files
committed
(Global): Require the new form.helper, and reset the debug prefix once form variables have been parsed
1 parent 47fcfd2 commit f7a1c87

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

page.texttospeech.php

+18
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,21 @@
1717
* Maintainer: Paul White <[email protected]>
1818
*******************************************************************/
1919

20+
// Check for play_audio right off the bat on legacy fpbx
21+
if ($tts_legacy_fpbx == true) {
22+
if ($_REQUEST['action'] == "play_audio") {
23+
include_once(dirname(__FILE__) . "/play_audio.php");
24+
exit;
25+
}
26+
}
27+
2028
// Include the crypt helper for our audio player
2129
require_once(dirname(__FILE__) . '/helpers/crypt.helper.php');
2230

31+
// Include the form helper, just in case this is a pre 2.10 freepbx
32+
// system which doesn't include it by default
33+
require_once(dirname(__FILE__) . '/helpers/form.helper.php');
34+
2335
// Reset our page tab order
2436
$tabindex = 0;
2537

@@ -38,8 +50,11 @@
3850
$_REQUEST['destination'] = '';
3951
}
4052

53+
4154
// Process our form variables
4255
$tts_vars = texttospeech_process_request($_REQUEST);
56+
texttospeech_debug_prefix($tts_vars);
57+
4358

4459
// Handle form actions
4560
switch ($action) {
@@ -83,6 +98,7 @@
8398
// Load our config information from the database
8499
$tts_vars = texttospeech_load_entry($tts_vars['id']);
85100
}
101+
86102
break;
87103

88104
}
@@ -92,6 +108,7 @@
92108
// Output rnav list
93109
include_once(dirname(__FILE__) . '/views/rnav.php');
94110

111+
95112
// Global table used multiple tiles
96113
$table = new CI_Table;
97114

@@ -137,6 +154,7 @@
137154
</h6>
138155
<?php
139156

157+
140158
// Output Javascript
141159
include_once(dirname(__FILE__) . '/views/javascript.php');
142160

0 commit comments

Comments
 (0)