mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove legacy function calls (#12651)
* massive inlines * fix style and wtf * remove rrdtool.inc.php include * fix CommonFunctions namespace issues * looking for missing class space, fix undefined class issues * style fixes
This commit is contained in:
@@ -6,8 +6,8 @@ require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||
|
||||
$options = getopt('h:p:');
|
||||
|
||||
$hosts = str_replace('*', '%', mres($options['h']));
|
||||
$ports = str_replace('*', '%', mres($options['p']));
|
||||
$hosts = str_replace('*', '%', $options['h']);
|
||||
$ports = str_replace('*', '%', $options['p']);
|
||||
|
||||
if (empty($hosts) && empty($ports)) {
|
||||
echo "-h <device hostname wildcard> Device(s) to match (all is a valid arg)\n";
|
||||
|
Reference in New Issue
Block a user