mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove function report_this_text() (#10728)
This commit is contained in:
@@ -787,11 +787,6 @@ function generate_ap_url($ap, $vars = array())
|
||||
return generate_url(array('page' => 'device', 'device' => $ap['device_id'], 'tab' => 'accesspoint', 'ap' => $ap['accesspoint_id']), $vars);
|
||||
}//end generate_ap_url()
|
||||
|
||||
function report_this_text($message)
|
||||
{
|
||||
return $message . '\nPlease report this to the ' . Config::get('project_name') . ' developers at ' . Config::get('project_issues') . '\n';
|
||||
}//end report_this_text()
|
||||
|
||||
|
||||
// Find all the files in the given directory that match the pattern
|
||||
|
||||
|
@@ -267,7 +267,7 @@ function snmp_get($device, $oid, $options = null, $mib = null, $mibdir = null)
|
||||
$time_start = microtime(true);
|
||||
|
||||
if (strstr($oid, ' ')) {
|
||||
echo report_this_text("snmp_get called for multiple OIDs: $oid");
|
||||
throw new Exception("snmp_get called for multiple OIDs: $oid");
|
||||
}
|
||||
|
||||
$cmd = gen_snmpget_cmd($device, $oid, $options, $mib, $mibdir);
|
||||
|
Reference in New Issue
Block a user