0002-Rename-class-to-use-singular-form-needed-for-GLPI-0..patch
ajax/connectionrate.tabs.php | ||
---|---|---|
35 | 35 |
define('GLPI_ROOT', '../../..'); |
36 | 36 |
include (GLPI_ROOT . "/inc/includes.php"); |
37 | 37 | |
38 |
$dropdown = new PluginConnectionsConnectionRates();
|
|
38 |
$dropdown = new PluginConnectionsConnectionRate(); |
|
39 | 39 |
include (GLPI_ROOT . "/ajax/dropdown.common.tabs.php"); |
40 | 40 | |
41 |
?> |
|
41 |
?> |
ajax/dropdownRatesConnections.php | ||
---|---|---|
65 | 65 |
); |
66 | 66 |
|
67 | 67 |
$default="<select name='".$_POST["myname"]."'><option value='0'>".DROPDOWN_EMPTY_VALUE."</option></select>"; |
68 |
ajaxDropdown($use_ajax,"/plugins/connections/ajax/dropdownRatesConnections.php",$params,$default,$rand);
|
|
68 |
ajaxDropdown($use_ajax,"/plugins/connections/ajax/dropdownConnections.php",$params,$default,$rand); |
|
69 | 69 | |
70 | 70 |
} |
71 | 71 | |
72 |
?> |
|
72 |
?> |
front/connectionrate.form.php | ||
---|---|---|
35 | 35 |
define('GLPI_ROOT', '../../..'); |
36 | 36 |
include (GLPI_ROOT . "/inc/includes.php"); |
37 | 37 | |
38 |
$dropdown = new PluginConnectionsConnectionRates();
|
|
38 |
$dropdown = new PluginConnectionsConnectionRate(); |
|
39 | 39 |
include (GLPI_ROOT . "/front/dropdown.common.form.php"); |
40 | 40 | |
41 |
?> |
|
41 |
?> |
inc/connectionrate.class.php | ||
---|---|---|
37 | 37 |
} |
38 | 38 | |
39 | 39 |
// Class for a Dropdown |
40 |
class PluginConnectionsConnectionRates extends CommonDropdown {
|
|
40 |
class PluginConnectionsConnectionRate extends CommonDropdown { |
|
41 | 41 |
|
42 | 42 |
static function getTypeName() { |
43 | 43 |
global $LANG; |
... | ... | |
74 | 74 |
} |
75 | 75 |
} |
76 | 76 | |
77 |
?> |
|
77 |
?> |
|
78 |
- |